public abstract class AbstractCommandTriggerManager extends AbstractTriggerManager<CommandTrigger>
AbstractTriggerManager.TriggerFilter, AbstractTriggerManager.TriggerInitFailedException| Modifier and Type | Field and Description |
|---|---|
static String |
CANDIDATES |
static String |
HINT |
static String |
TABS |
configSourceFactory, folder, loader| Constructor and Description |
|---|
AbstractCommandTriggerManager(TriggerReactorCore plugin,
File folder) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addCommandTrigger(ICommandSender adding,
String cmd,
String script) |
CommandTrigger |
createTempCommandTrigger(String script) |
protected abstract boolean |
registerCommand(String triggerName,
CommandTrigger trigger)
Register this command to command map.
|
void |
reload()
Reload all triggers
|
void |
reload(String triggerName) |
CommandTrigger |
remove(String name) |
void |
reregisterCommand(String triggerName) |
protected abstract void |
synchronizeCommandMap() |
protected abstract boolean |
unregisterCommand(String triggerName)
Unregister this command from command map.
|
get, getAllTriggers, getFolder, getTriggerFile, getTriggerInfos, getTriggerList, has, put, reportWarnings, saveAlldisable, getManagerspublic static final String TABS
public static final String HINT
public static final String CANDIDATES
public AbstractCommandTriggerManager(TriggerReactorCore plugin, File folder)
public void reload()
Managerreload in class AbstractTriggerManager<CommandTrigger>public void reload(String triggerName)
reload in class AbstractTriggerManager<CommandTrigger>public CommandTrigger remove(String name)
remove in class AbstractTriggerManager<CommandTrigger>public boolean addCommandTrigger(ICommandSender adding, String cmd, String script)
adding - CommandSender to send error message on script errorcmd - command to interceptscript - script to be executedpublic CommandTrigger createTempCommandTrigger(String script) throws AbstractTriggerManager.TriggerInitFailedException
protected abstract boolean registerCommand(String triggerName, CommandTrigger trigger)
triggerName - name of the trigger to registertrigger - the actual trigger instanceprotected abstract boolean unregisterCommand(String triggerName)
triggerName - name of trigger to removeprotected abstract void synchronizeCommandMap()
public void reregisterCommand(String triggerName)