Prevented non-opped players from using the tpbiome command (Closes #1459)
This commit is contained in:
parent
ed7b19ba9e
commit
48aa602981
|
@ -18,6 +18,7 @@ public class BOPCommand
|
|||
{
|
||||
dispatcher.register(
|
||||
LiteralArgumentBuilder.<CommandSource>literal("bop")
|
||||
.requires(cs->cs.hasPermissionLevel(2))
|
||||
.then(CommandTpBiome.register())
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue