Prevented non-opped players from using the tpbiome command (Closes #1459)

This commit is contained in:
Forstride 2019-08-24 04:28:08 -04:00
parent ed7b19ba9e
commit 48aa602981
2 changed files with 1 additions and 1 deletions

View File

@ -18,6 +18,7 @@ public class BOPCommand
{
dispatcher.register(
LiteralArgumentBuilder.<CommandSource>literal("bop")
.requires(cs->cs.hasPermissionLevel(2))
.then(CommandTpBiome.register())
);
}

View File

@ -26,7 +26,6 @@ public class CommandTpBiome
static ArgumentBuilder<CommandSource, ?> register()
{
return Commands.literal("tpbiome")
.requires(cs->cs.hasPermissionLevel(0)) //permission
.then(Commands.argument("biome", BiomeArgument.createArgument())
.executes(ctx -> {
ServerPlayerEntity player = ctx.getSource().asPlayer();