mirror of
https://github.com/GeorgH93/Minepacks.git
synced 2025-01-20 21:21:50 +01:00
Update CooldownManager.java
This commit is contained in:
parent
0351c37bbe
commit
827f71f7d5
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user