From 79d9948aede3498d1ed2cca6ea1345ba4f427f7d Mon Sep 17 00:00:00 2001 From: yoyosource Date: Tue, 14 Mar 2023 16:58:47 +0100 Subject: [PATCH] Update CommonCore Fix SWCommand for message system --- CommonCore | 2 +- SpigotCore_Main/src/de/steamwar/command/SWCommand.java | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CommonCore b/CommonCore index 36bb4db..41b46eb 160000 --- a/CommonCore +++ b/CommonCore @@ -1 +1 @@ -Subproject commit 36bb4db5152940eb9b190552607c23079f6abee6 +Subproject commit 41b46eb6f57318ebe5fcbbb7ca48baa481a66b04 diff --git a/SpigotCore_Main/src/de/steamwar/command/SWCommand.java b/SpigotCore_Main/src/de/steamwar/command/SWCommand.java index e0997f7..5094da4 100644 --- a/SpigotCore_Main/src/de/steamwar/command/SWCommand.java +++ b/SpigotCore_Main/src/de/steamwar/command/SWCommand.java @@ -101,6 +101,13 @@ public class SWCommand extends AbstractSWCommand { this.message.send(message, sender, args); } + @Override + protected void initialisePartOf(AbstractSWCommand parent) { + if (parent instanceof SWCommand) { + this.message = ((SWCommand) parent).message; + } + } + @Register(help = true) public void internalHelp(Player p, String... args) { if (message == null) {