26.12.2015, 18:50
Quote:
|
Thanks for replying but this didn't work
I was still able to spawn I updated the shoebill files using the updater.bat Here is my code: |
Code:
getEventManager().registerHandler(PlayerRequestSpawnEvent.class, e -> {
Random random = new Random();
Player player = e.getPlayer();
if(random.nextInt(2) == 0) {
player.sendMessage(Color.CHOCOLATE, "No spawn");
e.disallow();
} else {
player.sendMessage(Color.CHOCOLATE, "Yes spawn");
}
});
Could you also show me your resources.yml file?
As for classes, I can confirm that it's a bug. I found it and will submit an issue on github.


