0

Fixed cgt to work without params

This commit is contained in:
Pepich 2017-02-01 19:35:27 +01:00
parent 2db117b5a8
commit 3216cde9ec

View File

@ -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))