stop kicking from standing ontop of hidden block

This commit is contained in:
Tyler Murphy 2022-07-28 22:00:31 -04:00
parent 361b97d414
commit 4d737afc4f

View file

@ -56,6 +56,10 @@ public class JoinLeaveHandler implements Listener {
@EventHandler(priority = EventPriority.MONITOR)
public void onKick(PlayerKickEvent event) {
if(event.getReason().equals("Flying is not enabled on this server!")){
event.setCancelled(true);
return;
}
handleLeave(event.getPlayer());
}