0

Changed getCgKey method to void type

This commit is contained in:
Pepich 2017-02-01 21:22:52 +01:00
parent ace8287259
commit 13c1939fe8

View File

@ -26,7 +26,7 @@ import com.redstoner.modules.Module;
* *
* @author Pepich */ * @author Pepich */
@AutoRegisterListener @AutoRegisterListener
@Version(major = 1, minor = 1, revision = 10, compatible = 1) @Version(major = 1, minor = 1, revision = 11, compatible = 1)
public class Chatgroups implements Module, Listener public class Chatgroups implements Module, Listener
{ {
private static final char defaultKey = ':'; private static final char defaultKey = ':';
@ -160,12 +160,10 @@ public class Chatgroups implements Module, Listener
/** Prints a Players cgkey to their chat. /** Prints a Players cgkey to their chat.
* *
* @param sender the issuer of the command. * @param sender the issuer of the command. */
* @return true. */ public void getCgKey(CommandSender sender)
public boolean getCgKey(CommandSender sender)
{ {
Utils.sendMessage(sender, null, "Your current cgkey is §6" + getKey((Player) sender)); Utils.sendMessage(sender, null, "Your current cgkey is §6" + getKey((Player) sender));
return true;
} }
/** Sets the cgkey of a Player. /** Sets the cgkey of a Player.