Allow moderators to use the IP command

https://github.com/ElasticPortalSuite/BungeeCord/issues/89

Stated on DBO as a mod+ command
This commit is contained in:
lol768 2013-01-04 18:49:00 +00:00 committed by md_5
parent d622041d45
commit 608ca78be1

View File

@ -11,7 +11,7 @@ public class CommandIP extends Command
@Override @Override
public void execute(CommandSender sender, String[] args) public void execute(CommandSender sender, String[] args)
{ {
if (getPermission(sender) != Permission.ADMIN) if (getPermission(sender) != Permission.MODERATOR && getPermission(sender) != Permission.ADMIN)
{ {
sender.sendMessage(ChatColor.RED + "You do not have permission to use this command"); sender.sendMessage(ChatColor.RED + "You do not have permission to use this command");
return; return;