Added '/worldhandler allow_commands' subcommand, improved permission query error messages

This commit is contained in:
Marcel Konrad
2022-06-28 23:46:02 +02:00
parent b205bba317
commit 560b9ee360
9 changed files with 90 additions and 18 deletions

View File

@@ -12,7 +12,9 @@ public class WorldHandlerCommandBuilder extends CommandBuilder
.then(CommandNode.literal("display")
.label(Label.DISPLAY))
.then(CommandNode.literal("version")
.label(Label.VERSION));
.label(Label.VERSION))
.then(CommandNode.literal("allow_commands")
.label(Label.ALLOW_COMMANDS));
@Override
protected CommandNodeLiteral root()
@@ -24,6 +26,7 @@ public class WorldHandlerCommandBuilder extends CommandBuilder
{
HELP,
DISPLAY,
VERSION;
VERSION,
ALLOW_COMMANDS;
}
}