Switched OnCommand and GetHelpText
*GetHelpText wasn't with its friends and it's driving me CRAZY*
This commit is contained in:
parent
4c10dfbf33
commit
5c96d23080
1 changed files with 4 additions and 3 deletions
|
@ -15,8 +15,6 @@ 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", "");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue