Check if player is online

This commit is contained in:
Mathieu Strypsteen 2024-09-22 21:12:29 +02:00
parent 6fcd67f8a2
commit ca0efa5981

View file

@ -60,7 +60,9 @@ public class EndEvent extends Event {
@EventHandler
public void onEntityDeath(EntityDeathEvent event) {
if (event.getEntityType() == EntityType.ENDER_DRAGON) {
eventSuccess();
if (MC13DTL.board.getPlayers(team).size() > 0) {
eventSuccess();
}
}
}