Fix permission level for commands (#1117)
This commit is contained in:
parent
5b9bb07d8d
commit
c7f644528b
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue