mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-03 06:57:39 +01:00
Fix incomplete cooldowns being added to data (#4249)
This commit is contained in:
parent
1da3b3f08e
commit
003d556f3d
@ -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 New Issue
Block a user