Changed Utility time to ms

This commit is contained in:
Chiss 2014-10-11 20:53:39 +11:00
parent a2df64787f
commit 316ce38056
3 changed files with 5 additions and 8 deletions

View File

@ -158,7 +158,7 @@ public class HubManager extends MiniClientPlugin<HubClient>
new MapManager(this);
new WorldManager(this);
new JumpManager(this);
new UHCManager(this);
new UHCManager(this);
//new TournamentInviter(this);
_news = new NewsManager(this);

View File

@ -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)

View File

@ -77,7 +77,7 @@ public class Utility
getPool().returnResource(jedis);
}
return currentTime;
return currentTime * 1000;
}
public static JedisPool getPool()