Fail event on empty team

This commit is contained in:
Mathieu Strypsteen 2024-09-14 23:24:00 +02:00
parent d665231215
commit 1a672f2990

View file

@ -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() {