diff --git a/Plugins/Mineplex.Hub/src/mineplex/hub/HubManager.java b/Plugins/Mineplex.Hub/src/mineplex/hub/HubManager.java index ed3557129..e9379fd70 100644 --- a/Plugins/Mineplex.Hub/src/mineplex/hub/HubManager.java +++ b/Plugins/Mineplex.Hub/src/mineplex/hub/HubManager.java @@ -158,7 +158,7 @@ public class HubManager extends MiniClientPlugin new MapManager(this); new WorldManager(this); new JumpManager(this); - new UHCManager(this); + new UHCManager(this); //new TournamentInviter(this); _news = new NewsManager(this); diff --git a/Plugins/Mineplex.Hub/src/mineplex/hub/modules/UHCManager.java b/Plugins/Mineplex.Hub/src/mineplex/hub/modules/UHCManager.java index d0f8c6c80..2c2459f60 100644 --- a/Plugins/Mineplex.Hub/src/mineplex/hub/modules/UHCManager.java +++ b/Plugins/Mineplex.Hub/src/mineplex/hub/modules/UHCManager.java @@ -34,12 +34,7 @@ public class UHCManager extends MiniPlugin @EventHandler public void AnnounceUpdate(UpdateEvent event) { - if (event.getType() == UpdateType.MIN_01) - { - System.out.println("UHC in " + UtilTime.MakeStr(_delay - (System.currentTimeMillis() % _delay))); - } - - if (event.getType() != UpdateType.FAST) + if (event.getType() != UpdateType.SEC) return; Bukkit.getScheduler().runTaskAsynchronously(Manager.GetPlugin(), new Runnable() @@ -48,6 +43,8 @@ public class UHCManager extends MiniPlugin public void run() { long time = Utility.currentTimeMillis(); + + //System.out.println("UHC in " + UtilTime.MakeStr(_delay - (time % _delay))); //Reset if (time % _delay > 30000 && time % _delay < _delay - 180000) diff --git a/Plugins/Mineplex.ServerData/src/mineplex/serverdata/Utility.java b/Plugins/Mineplex.ServerData/src/mineplex/serverdata/Utility.java index 122c71b2e..875fc1556 100644 --- a/Plugins/Mineplex.ServerData/src/mineplex/serverdata/Utility.java +++ b/Plugins/Mineplex.ServerData/src/mineplex/serverdata/Utility.java @@ -77,7 +77,7 @@ public class Utility getPool().returnResource(jedis); } - return currentTime; + return currentTime * 1000; } public static JedisPool getPool()