public class commandPreprocessor
extends java.lang.Object
implements org.bukkit.event.Listener
Constructor and Description |
---|
commandPreprocessor(org.bukkit.plugin.Plugin aa)
Constructor, stores instance of AdminAnything for further use.
|
Modifier and Type | Method and Description |
---|---|
void |
redirectConsoleCommand(org.bukkit.event.server.ServerCommandEvent e)
Redirects command from the old one (via fixCommand) to a new one that should replace it.
|
void |
redirectPlayerCommand(org.bukkit.event.player.PlayerCommandPreprocessEvent e)
Redirects command from the old one (via fixCommand) to a new one that should replace it.
|
void |
reload(AAReloadEvent e)
React to the custom ReloadEvent which will reload
all command lists internal to this event listener
whenevet our configuration changes.
|
public commandPreprocessor(org.bukkit.plugin.Plugin aa)
aa
- Instance of AdminAnything
.public void redirectPlayerCommand(org.bukkit.event.player.PlayerCommandPreprocessEvent e) throws java.io.InvalidClassException
e
- The player pre-process event to work with.java.io.InvalidClassException
- When we couldn't determine this command's plugin.public void redirectConsoleCommand(org.bukkit.event.server.ServerCommandEvent e) throws java.io.InvalidClassException
e
- The server command event to work with.java.io.InvalidClassException
- When we couldn't determine this command's plugin.public void reload(AAReloadEvent e)
e
- The actual reload event with message that says who is this reload for.