Fix permission level for commands (#1117)

This commit is contained in:
Nicholas Ignoffo 2017-05-21 12:56:51 -07:00
parent 5b9bb07d8d
commit c7f644528b
3 changed files with 18 additions and 0 deletions

View file

@ -26,6 +26,12 @@ public class SubCommandBind extends CommandBase
return TextHelper.localizeEffect("commands.bind.usage");
}
@Override
public int getRequiredPermissionLevel()
{
return 2;
}
@Override
public void execute(MinecraftServer server, ICommandSender commandSender, String[] args) throws CommandException
{

View file

@ -25,6 +25,12 @@ public class SubCommandNetwork extends CommandBase
return TextHelper.localizeEffect("commands.network.usage");
}
@Override
public int getRequiredPermissionLevel()
{
return 2;
}
@Override
public void execute(MinecraftServer server, ICommandSender commandSender, String[] args) throws CommandException
{

View file

@ -26,6 +26,12 @@ public class SubCommandOrb extends CommandBase
return TextHelper.localizeEffect("commands.orb.usage");
}
@Override
public int getRequiredPermissionLevel()
{
return 2;
}
@Override
public void execute(MinecraftServer server, ICommandSender commandSender, String[] args) throws CommandException
{