Add global end announcement feature.

This commit is contained in:
garbagemule
2013-07-28 14:21:40 +02:00
parent 77899a4e7f
commit 859baf7b71
3 changed files with 9 additions and 1 deletions
+7 -1
View File
@@ -495,7 +495,13 @@ public class ArenaImpl implements Arena
stopSpawner();
// Announce and clean arena floor, etc.
Messenger.tellAll(this, Msg.ARENA_END, true);
if (settings.getBoolean("global-end-announce", false)) {
for (Player p : Bukkit.getOnlinePlayers()) {
Messenger.tellPlayer(p, Msg.ARENA_END_GLOBAL, configName());
}
} else {
Messenger.tellAll(this, Msg.ARENA_END, true);
}
cleanup();
// Restore region.