How to get the world?

DANI3L

New Member
It's called Level in Nukkit. Use getLevel().
Hey again, I'm trying to check if a player is not in the whitelist

@EventHandler
public void sendChat(PlayerChatEvent e) {
Player p = e.getPlayer();
if (!p.isWhitelisted()) {
e.setCancelled(true);
}
}

its not working for some reasons...
 
Last edited:
Top