bukkit send command as player code example
Example: bukkit command sender is player
if(sender instanceof Player) {
Player player = (Player) sender;
// stuff here that requires the player object
}
if(sender instanceof Player) {
Player player = (Player) sender;
// stuff here that requires the player object
}