mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-01 18:23:00 +00:00
Adding console overrides to exempts
This commit is contained in:
parent
a7e692fe37
commit
f50c5276e4
2 changed files with 3 additions and 2 deletions
|
@ -44,7 +44,7 @@ public class Commandban extends EssentialsCommand
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (user.isAuthorized("essentials.ban.exempt"))
|
if (user.isAuthorized("essentials.ban.exempt") && sender instanceof Player)
|
||||||
{
|
{
|
||||||
sender.sendMessage(_("banExempt"));
|
sender.sendMessage(_("banExempt"));
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -7,6 +7,7 @@ import java.util.logging.Logger;
|
||||||
import org.bukkit.Server;
|
import org.bukkit.Server;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.command.PluginCommand;
|
import org.bukkit.command.PluginCommand;
|
||||||
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
|
|
||||||
public class Commandsudo extends EssentialsCommand
|
public class Commandsudo extends EssentialsCommand
|
||||||
|
@ -33,7 +34,7 @@ public class Commandsudo extends EssentialsCommand
|
||||||
System.arraycopy(args, 2, arguments, 0, args.length - 2);
|
System.arraycopy(args, 2, arguments, 0, args.length - 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (user.isAuthorized("essentials.sudo.exempt"))
|
if (user.isAuthorized("essentials.sudo.exempt") && sender instanceof Player)
|
||||||
{
|
{
|
||||||
throw new Exception(_("sudoExempt"));
|
throw new Exception(_("sudoExempt"));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue