Fixes (/u ncolor), not allowing two of the same town colors, not broadcasting announcements if nobody is online #93
1 changed files with 1 additions and 0 deletions
|
@ -13,6 +13,7 @@ public class AnnouncerThread implements Runnable {
|
||||||
} catch (InterruptedException ex) {
|
} catch (InterruptedException ex) {
|
||||||
Thread.currentThread().interrupt();
|
Thread.currentThread().interrupt();
|
||||||
}
|
}
|
||||||
|
if (Bukkit.getOnlinePlayers().size() == 0) continue; //Don't post to Discord if nobody is on
|
||||||
if (PluginMain.AnnounceMessages.size() > AnnounceMessageIndex) {
|
if (PluginMain.AnnounceMessages.size() > AnnounceMessageIndex) {
|
||||||
Bukkit.broadcastMessage(PluginMain.AnnounceMessages.get(AnnounceMessageIndex));
|
Bukkit.broadcastMessage(PluginMain.AnnounceMessages.get(AnnounceMessageIndex));
|
||||||
AnnounceMessageIndex++;
|
AnnounceMessageIndex++;
|
||||||
|
|
Loading…
Reference in a new issue