From 05f8129705dc5f1e0bbd640715e1ca90fd89004c Mon Sep 17 00:00:00 2001 From: yoyosource Date: Thu, 25 Mar 2021 20:27:48 +0100 Subject: [PATCH] Add help command System to SWCommand --- SpigotCore_Main/src/de/steamwar/acommand/TestCommand.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/SpigotCore_Main/src/de/steamwar/acommand/TestCommand.java b/SpigotCore_Main/src/de/steamwar/acommand/TestCommand.java index 9e6a68e..90800e1 100644 --- a/SpigotCore_Main/src/de/steamwar/acommand/TestCommand.java +++ b/SpigotCore_Main/src/de/steamwar/acommand/TestCommand.java @@ -35,6 +35,12 @@ public class TestCommand extends SWCommand { super("test"); } + // One Help Command, the first Parameter should be some kind of CommandSender + @RegisterHelp + public void testHelp(Player player) { + player.sendMessage("This is your help message"); + } + // One Command, the first Parameter should be some kind of CommandSender @Register public void test(Player player) {