Check if player is online
This commit is contained in:
parent
6fcd67f8a2
commit
ca0efa5981
1 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue