Addition of RequestSkillCoolTime.
Thanks to Fakee.
This commit is contained in:
@@ -98,11 +98,13 @@ public class Timestamp
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
final long remainingTime = Math.max(_stamp - System.currentTimeMillis(), 0);
|
||||
if (remainingTime == 0)
|
||||
{
|
||||
_stamp = 0;
|
||||
}
|
||||
|
||||
return remainingTime;
|
||||
}
|
||||
|
||||
@@ -116,11 +118,13 @@ public class Timestamp
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
final boolean hasNotPassed = System.currentTimeMillis() < _stamp;
|
||||
if (!hasNotPassed)
|
||||
{
|
||||
_stamp = 0;
|
||||
}
|
||||
|
||||
return hasNotPassed;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user