Add Game#isFinished() method

This commit is contained in:
Daniel Saukel 2019-02-21 18:59:14 +01:00
parent 0f4e28355e
commit 7bc16b9aff

View File

@ -423,6 +423,10 @@ public class Game {
}.runTaskLater(plugin, delay * 20);
}
public boolean isFinished() {
return dGroups.stream().allMatch(DGroup::isFinished);
}
/**
* @param message the message to send
*/