Fail event on empty team
This commit is contained in:
parent
d665231215
commit
1a672f2990
1 changed files with 3 additions and 0 deletions
|
@ -24,6 +24,9 @@ public abstract class Event implements Listener {
|
|||
player.sendMessage(ChatColor.GRAY + "" + ChatColor.ITALIC + getMessage());
|
||||
}
|
||||
MC13DTL.instance.getServer().getPluginManager().registerEvents(this, MC13DTL.instance);
|
||||
if (getPlayers().size() == 0) {
|
||||
eventFailed();
|
||||
}
|
||||
}
|
||||
|
||||
private void eventFinished() {
|
||||
|
|
Loading…
Reference in a new issue