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