stop kicking from standing ontop of hidden block
This commit is contained in:
parent
361b97d414
commit
4d737afc4f
1 changed files with 4 additions and 0 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue