Addition of RequestSkillCoolTime.

Thanks to Fakee.
This commit is contained in:
MobiusDevelopment
2022-11-25 04:28:54 +00:00
parent c92cbfcec0
commit ea9280bb30
119 changed files with 1428 additions and 322 deletions

View File

@@ -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;
}
}