Check if player is online
This commit is contained in:
parent
6fcd67f8a2
commit
ca0efa5981
1 changed files with 3 additions and 1 deletions
|
@ -60,9 +60,11 @@ public class EndEvent extends Event {
|
|||
@EventHandler
|
||||
public void onEntityDeath(EntityDeathEvent event) {
|
||||
if (event.getEntityType() == EntityType.ENDER_DRAGON) {
|
||||
if (MC13DTL.board.getPlayers(team).size() > 0) {
|
||||
eventSuccess();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@EventHandler
|
||||
|
|
Loading…
Reference in a new issue