add not EntityDamageByEntityEvent for no pvp mode

This commit is contained in:
Tyler Murphy 2022-05-04 11:01:48 -04:00
parent 0416f4bfd2
commit c93937df03

View file

@ -201,6 +201,9 @@ public class EventListener implements Listener {
event.setCancelled(true); event.setCancelled(true);
return; return;
} }
} else if(!pvpEnabled) {
event.setCancelled(true);
return;
} }
if (spawnPosition == null) return; if (spawnPosition == null) return;
event.setCancelled(true); event.setCancelled(true);