add not EntityDamageByEntityEvent for no pvp mode
This commit is contained in:
parent
0416f4bfd2
commit
c93937df03
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue