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

@ -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()
@ -49,6 +44,8 @@ public class UHCManager extends MiniPlugin
{
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()