Changed Utility time to ms
This commit is contained in:
parent
a2df64787f
commit
316ce38056
@ -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)
|
||||
{
|
||||
|
@ -77,7 +77,7 @@ public class Utility
|
||||
getPool().returnResource(jedis);
|
||||
}
|
||||
|
||||
return currentTime;
|
||||
return currentTime * 1000;
|
||||
}
|
||||
|
||||
public static JedisPool getPool()
|
||||
|
Loading…
Reference in New Issue
Block a user