From 97a68b44b4edc0c8e3565e081c2a03250652ef97 Mon Sep 17 00:00:00 2001 From: rl Date: Tue, 11 Dec 2018 22:00:23 +0100 Subject: [PATCH] Removed sleeping message during day Fixed problem with actionbar showing "everyone is sleeping"-message --- Harbor/src/techtoolbox/Harbor/ActionBarMessage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Harbor/src/techtoolbox/Harbor/ActionBarMessage.java b/Harbor/src/techtoolbox/Harbor/ActionBarMessage.java index cef0cde..83feb18 100644 --- a/Harbor/src/techtoolbox/Harbor/ActionBarMessage.java +++ b/Harbor/src/techtoolbox/Harbor/ActionBarMessage.java @@ -9,7 +9,7 @@ public class ActionBarMessage implements Runnable { if (((Main.worlds.get(Bukkit.getServer().getWorlds().get(i))).intValue() > 0) && ((Main.worlds.get(Bukkit.getServer().getWorlds().get(i))).intValue() < (Bukkit.getServer().getWorlds().get(i)).getPlayers().size() - Main.bypassers.size())) { Main.sendActionbar("playersInBed", Bukkit.getServer().getWorlds().get(i)); } - else if (((Main.worlds.get(Bukkit.getServer().getWorlds().get(i))).intValue() == (Bukkit.getServer().getWorlds().get(i)).getPlayers().size() - Main.bypassers.size()) && ((Bukkit.getServer().getWorlds().get(i)).getPlayers().size() > 1)) { + else if (((Main.worlds.get(Bukkit.getServer().getWorlds().get(i))).intValue() == (Bukkit.getServer().getWorlds().get(i)).getPlayers().size() - Main.bypassers.size()) && ((Bukkit.getServer().getWorlds().get(i)).getPlayers().size() - Main.bypassers.size() > 1)) { Main.sendActionbar("everyoneSleeping", Bukkit.getServer().getWorlds().get(i)); } }