From 3216cde9ec4563a97ee79300e3bf7d10a6dfdb75 Mon Sep 17 00:00:00 2001 From: Pepich Date: Wed, 1 Feb 2017 19:35:27 +0100 Subject: [PATCH] Fixed cgt to work without params --- src/com/redstoner/modules/chatgroups/Chatgroups.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/com/redstoner/modules/chatgroups/Chatgroups.java b/src/com/redstoner/modules/chatgroups/Chatgroups.java index 2ece9c5..d130c36 100644 --- a/src/com/redstoner/modules/chatgroups/Chatgroups.java +++ b/src/com/redstoner/modules/chatgroups/Chatgroups.java @@ -73,10 +73,10 @@ public class Chatgroups implements Module, Listener public String getCommandString() { return "command cgt {\n" + - " [string:void...] {\n" + + " [empty] {\n" + " help Toggles your cgtoggle status.;\n"+ " type player;\n" + - " run cgtoggle void;\n" + + " run cgtoggle;\n" + " }\n" + "}\n" + "command cgkey {\n" + @@ -196,7 +196,7 @@ public class Chatgroups implements Module, Listener * @param _void ignored. * @return true. */ @Command(hook = "cgtoggle") - public boolean cgToggleCommand(CommandSender sender, String _void) + public boolean cgToggleCommand(CommandSender sender) { if (getGroup(sender) != null) if (cgtoggled.contains(sender))