Merge pull request #20 from TBMCPlugins/Ali

Ok
This commit is contained in:
Norbi Peti 2016-11-07 18:54:48 +01:00 committed by GitHub
commit b336904fe5

View file

@ -14,9 +14,7 @@ public abstract class TBMCCommandBase {
public TBMCCommandBase() {
}
public abstract String[] GetHelpText(String alias);
public abstract boolean OnCommand(CommandSender sender, String alias, String[] args);
/**
@ -28,6 +26,9 @@ public abstract class TBMCCommandBase {
*
* @return The command path, <i>which is the command class name by default</i> (removing any "command" from it)
*/
public abstract String[] GetHelpText(String alias);
public String GetCommandPath() {
return getClass().getSimpleName().toLowerCase().replace("command", "");
}