How can i get the world? in spigot its like p.getWorld...
DANI3L New Member Apr 20, 2020 #1 How can i get the world? in spigot its like p.getWorld... Last edited: Apr 20, 2020
PetteriM1 Resource Mod Staff member Apr 20, 2020 #2 DANI3L said: How can i get the world? in spigot its like p.getWorld... Click to expand... It's called Level in Nukkit. Use getLevel().
DANI3L said: How can i get the world? in spigot its like p.getWorld... Click to expand... It's called Level in Nukkit. Use getLevel().
DANI3L New Member Apr 20, 2020 #3 PetteriM1 said: It's called Level in Nukkit. Use getLevel(). Click to expand... Thanks !
DANI3L New Member Apr 20, 2020 #4 PetteriM1 said: It's called Level in Nukkit. Use getLevel(). Click to expand... 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: Apr 20, 2020
PetteriM1 said: It's called Level in Nukkit. Use getLevel(). Click to expand... 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...
S ShadowKALler7 Member Aug 18, 2020 #5 wait you wanna cancel the chat event if they are NOT whitelisted?