From cbefc14f72f7dcc7bfdba2fafdde6dab14f42268 Mon Sep 17 00:00:00 2001 From: Tobias Date: Wed, 4 Sep 2019 17:38:42 +0200 Subject: [PATCH] Fixes `/bloodmagic network` command permissions required for executing the command. (#1613) Inheriting from CommandTreeBase, the required permission level was 4. All other BloodMagic commands had a required permission level of 2. This resulted in network command not able to be executed from a Command Block, which have a permission level of 2. --- .../WayofTime/bloodmagic/command/sub/SubCommandNetwork.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/WayofTime/bloodmagic/command/sub/SubCommandNetwork.java b/src/main/java/WayofTime/bloodmagic/command/sub/SubCommandNetwork.java index 236d3014..ff1038c8 100644 --- a/src/main/java/WayofTime/bloodmagic/command/sub/SubCommandNetwork.java +++ b/src/main/java/WayofTime/bloodmagic/command/sub/SubCommandNetwork.java @@ -50,6 +50,11 @@ public class SubCommandNetwork extends CommandTreeBase { public SoulNetwork network; public String uuid; + @Override + public int getRequiredPermissionLevel() { + return 2; + } + public Integer commandHelperAmount(MinecraftServer server, ICommandSender sender, String[] args) { int amount; if (args.length == 0)