What does Player player = (Player) do java 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
}