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