public class ScriptEditManager extends AbstractScriptEditManager
| Constructor and Description |
|---|
ScriptEditManager(TriggerReactorCore plugin) |
| Modifier and Type | Method and Description |
|---|---|
void |
onChat(org.spongepowered.api.event.message.MessageChannelEvent.Chat e,
org.spongepowered.api.entity.living.player.Player sender) |
void |
onQuit(org.spongepowered.api.event.network.ClientConnectionEvent.Disconnect e,
org.spongepowered.api.entity.living.player.Player receiver) |
void |
onTab(org.spongepowered.api.event.command.TabCompleteEvent e,
org.spongepowered.api.entity.living.player.Player player) |
void |
reload()
Reload all triggers
|
void |
saveAll()
Save all triggers
|
void |
startEdit(ICommandSender sender,
String title,
String script,
ScriptEditor.SaveHandler saveHandler)
Start the script editor.
|
parseSpaceToMarkerdisable, getManagerspublic ScriptEditManager(TriggerReactorCore plugin)
public void startEdit(ICommandSender sender, String title, String script, ScriptEditor.SaveHandler saveHandler)
AbstractScriptEditManagerstartEdit in class AbstractScriptEditManagersender - the sender to start editortitle - title to be shown on the editorscript - the actual script. It can be empty stringsaveHandler - the callback interface that allows you to save the script written by editor.public void onChat(org.spongepowered.api.event.message.MessageChannelEvent.Chat e,
org.spongepowered.api.entity.living.player.Player sender)
public void onTab(org.spongepowered.api.event.command.TabCompleteEvent e,
org.spongepowered.api.entity.living.player.Player player)
public void onQuit(org.spongepowered.api.event.network.ClientConnectionEvent.Disconnect e,
org.spongepowered.api.entity.living.player.Player receiver)
public void reload()
Manager