From 48aa60298128d4beacf0ee9e0756cf62a1d817cb Mon Sep 17 00:00:00 2001 From: Forstride Date: Sat, 24 Aug 2019 04:28:08 -0400 Subject: [PATCH] Prevented non-opped players from using the tpbiome command (Closes #1459) --- src/main/java/biomesoplenty/common/command/BOPCommand.java | 1 + src/main/java/biomesoplenty/common/command/CommandTpBiome.java | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/biomesoplenty/common/command/BOPCommand.java b/src/main/java/biomesoplenty/common/command/BOPCommand.java index 07e5410e8..cff0a1822 100644 --- a/src/main/java/biomesoplenty/common/command/BOPCommand.java +++ b/src/main/java/biomesoplenty/common/command/BOPCommand.java @@ -18,6 +18,7 @@ public class BOPCommand { dispatcher.register( LiteralArgumentBuilder.literal("bop") + .requires(cs->cs.hasPermissionLevel(2)) .then(CommandTpBiome.register()) ); } diff --git a/src/main/java/biomesoplenty/common/command/CommandTpBiome.java b/src/main/java/biomesoplenty/common/command/CommandTpBiome.java index ce56f3991..096aaa15e 100644 --- a/src/main/java/biomesoplenty/common/command/CommandTpBiome.java +++ b/src/main/java/biomesoplenty/common/command/CommandTpBiome.java @@ -26,7 +26,6 @@ public class CommandTpBiome static ArgumentBuilder register() { return Commands.literal("tpbiome") - .requires(cs->cs.hasPermissionLevel(0)) //permission .then(Commands.argument("biome", BiomeArgument.createArgument()) .executes(ctx -> { ServerPlayerEntity player = ctx.getSource().asPlayer();