Fixed event calling for console

This commit is contained in:
boy0001
2015-07-28 04:12:51 +10:00
parent cf10c609a9
commit dd2cbeaaf8
2 changed files with 17 additions and 8 deletions

View File

@ -16,7 +16,10 @@ import java.util.UUID;
public class BukkitEventUtil extends EventUtil {
public Player getPlayer(PlotPlayer player) {
return ((BukkitPlayer) player).player;
if (player instanceof BukkitPlayer) {
return ((BukkitPlayer) player).player;
}
return null;
}
public boolean callEvent(Event event) {