Revert cooldown is player is bypassing

This commit is contained in:
Driftay 2020-04-06 16:21:22 -04:00
parent 62e4114466
commit 919a3ada25
4 changed files with 4 additions and 4 deletions

View File

@ -71,7 +71,7 @@ public class CmdCreate extends FCommand {
return;
}
if(Cooldown.isOnCooldown(context.fPlayer.getPlayer(), "createCooldwn")){
if(Cooldown.isOnCooldown(context.fPlayer.getPlayer(), "createCooldwn") && !context.fPlayer.isAdminBypassing()){
context.msg(TL.COMMAND_COOLDOWN);
return;
}

View File

@ -85,7 +85,7 @@ public class CmdDisband extends FCommand {
}
}
if(Cooldown.isOnCooldown(context.fPlayer.getPlayer(), "disbandCooldown")){
if(Cooldown.isOnCooldown(context.fPlayer.getPlayer(), "disbandCooldown") && !context.fPlayer.isAdminBypassing()){
context.msg(TL.COMMAND_COOLDOWN);
return;
}

View File

@ -39,7 +39,7 @@ public class CmdOpen extends FCommand {
String open = context.faction.getOpen() ? TL.COMMAND_OPEN_OPEN.toString() : TL.COMMAND_OPEN_CLOSED.toString();
if(Cooldown.isOnCooldown(context.fPlayer.getPlayer(), "openCooldown")){
if(Cooldown.isOnCooldown(context.fPlayer.getPlayer(), "openCooldown") && !context.fPlayer.isAdminBypassing()){
context.msg(TL.COMMAND_COOLDOWN);
return;
}

View File

@ -54,7 +54,7 @@ public class CmdTag extends FCommand {
return;
}
if(Cooldown.isOnCooldown(context.player, "tagCooldown")){
if(Cooldown.isOnCooldown(context.player, "tagCooldown") && !context.fPlayer.isAdminBypassing()){
context.msg(TL.COMMAND_COOLDOWN);
return;
}