From 2f61d2836bd3256df19da0e15483e5531a68b3b8 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sat, 10 Apr 2021 17:33:20 +0200 Subject: [PATCH] Make SWCommand.register and SWCommand.unregister public --- SpigotCore_Main/src/de/steamwar/command/SWCommand.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SpigotCore_Main/src/de/steamwar/command/SWCommand.java b/SpigotCore_Main/src/de/steamwar/command/SWCommand.java index 72cda65..ae31780 100644 --- a/SpigotCore_Main/src/de/steamwar/command/SWCommand.java +++ b/SpigotCore_Main/src/de/steamwar/command/SWCommand.java @@ -186,7 +186,7 @@ public abstract class SWCommand { }); } - protected void unregister() { + public void unregister() { SWCommandUtils.knownCommandMap.remove(command.getName()); for (String alias : command.getAliases()) { SWCommandUtils.knownCommandMap.remove(alias); @@ -194,7 +194,7 @@ public abstract class SWCommand { command.unregister(SWCommandUtils.commandMap); } - protected void register() { + public void register() { SWCommandUtils.commandMap.register("steamwar", this.command); }