mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 11:49:12 +00:00
Add essentials.commandcooldowns.bypass
permission.
This commit is contained in:
parent
142315140e
commit
20594d2523
1 changed files with 2 additions and 1 deletions
|
@ -409,7 +409,8 @@ public class EssentialsPlayerListener implements Listener {
|
|||
user.updateActivity(broadcast);
|
||||
}
|
||||
|
||||
if (ess.getSettings().isCommandCooldownsEnabled() && pluginCommand != null) {
|
||||
if (ess.getSettings().isCommandCooldownsEnabled() && pluginCommand != null
|
||||
&& !user.isAuthorized("essentials.commandcooldowns.bypass")) {
|
||||
int argStartIndex = event.getMessage().indexOf(" ");
|
||||
String args = argStartIndex == -1 ? event.getMessage() // No arguments present
|
||||
: event.getMessage().substring(argStartIndex); // arguments start at argStartIndex; substring from there.
|
||||
|
|
Loading…
Reference in a new issue