mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-01-03 22:08:28 +00:00
Fix incomplete cooldowns being added to data (#4249)
This commit is contained in:
parent
1da3b3f08e
commit
003d556f3d
1 changed files with 3 additions and 0 deletions
|
@ -601,6 +601,9 @@ public abstract class UserData extends PlayerExtension implements IConf {
|
|||
final CommandCooldown cooldown = new CommandCooldown();
|
||||
cooldown.pattern(pattern);
|
||||
cooldown.value(expiresAt.getTime());
|
||||
if (cooldown.isIncomplete()) {
|
||||
return;
|
||||
}
|
||||
holder.timestamps().commandCooldowns().add(cooldown);
|
||||
if (save) {
|
||||
save();
|
||||
|
|
Loading…
Reference in a new issue