Ugly change
This commit is contained in:
parent
02f19712ae
commit
e75428f718
2 changed files with 5 additions and 3 deletions
|
@ -1,10 +1,11 @@
|
||||||
package alisolarflare;
|
package alisolarflare;
|
||||||
|
|
||||||
|
import org.bukkit.command.CommandExecutor;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
|
|
||||||
import buttondevteam.lib.chat.TBMCCommandBase;
|
import buttondevteam.lib.chat.TBMCCommandBase;
|
||||||
|
|
||||||
public abstract class DevCommand extends TBMCCommandBase{
|
public abstract class DevCommand extends TBMCCommandBase implements CommandExecutor{
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public abstract boolean OnCommand(CommandSender sender, String alias, String[] args);
|
public abstract boolean OnCommand(CommandSender sender, String alias, String[] args);
|
||||||
|
@ -12,6 +13,7 @@ public abstract class DevCommand extends TBMCCommandBase{
|
||||||
@Override
|
@Override
|
||||||
public abstract String[] GetHelpText(String alias);
|
public abstract String[] GetHelpText(String alias);
|
||||||
|
|
||||||
|
public abstract String GetLabel();
|
||||||
@Override
|
@Override
|
||||||
public boolean GetPlayerOnly() {
|
public boolean GetPlayerOnly() {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
|
@ -33,8 +33,8 @@ public abstract class Module{
|
||||||
* @param label Name of the command in plugin.yml
|
* @param label Name of the command in plugin.yml
|
||||||
* @param commandExecutor Custom coded CommandExecutor class
|
* @param commandExecutor Custom coded CommandExecutor class
|
||||||
*/
|
*/
|
||||||
protected void registerCommand(JavaPlugin plugin, TBMCCommandBase commandBase){
|
protected void registerCommand(JavaPlugin plugin, DevCommand devCommand){
|
||||||
TBMCChatAPI.AddCommand(plugin, commandBase);
|
plugin.getCommand(devCommand.GetLabel()).setExecutor(devCommand);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Registers a Listener to this plugin
|
* Registers a Listener to this plugin
|
||||||
|
|
Loading…
Reference in a new issue