Update CooldownManager.java

This commit is contained in:
adabugra 2024-12-23 17:29:06 +03:00 committed by GitHub
parent 0351c37bbe
commit 827f71f7d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,6 +46,7 @@ public CooldownManager(Minepacks plugin)
addOnJoin = plugin.getConfiguration().isCommandCooldownAddOnJoinEnabled();
clearOnLeave = plugin.getConfiguration().isCommandCooldownClearOnLeaveEnabled();
plugin.getServer().getPluginManager().registerEvents(this, plugin);
schedule();
}
public void close()
@ -111,4 +112,4 @@ public void run()
public void schedule() {
task = getScheduler().runTimer(this::run, plugin.getConfiguration().getCommandCooldownCleanupInterval(), plugin.getConfiguration().getCommandCooldownCleanupInterval());
}
}
}