Class CommandListener
java.lang.Object
studio.magemonkey.codex.mccore.commands.CommandListener
- All Implemented Interfaces:
org.bukkit.event.Listener
Listener for cleaning up configurable commands automatically for other plugins when they are disabled.
-
Constructor Summary
ConstructorsConstructorDescriptionCommandListener(CodexEngine plugin) Creates the listener for configurable commands -
Method Summary
Modifier and TypeMethodDescriptionvoidonCommand(org.bukkit.event.player.PlayerCommandPreprocessEvent event) Handles player commandsvoidonCommand(org.bukkit.event.server.ServerCommandEvent event) Handles server commandsvoidonDisable(org.bukkit.event.server.PluginDisableEvent event) Unregisters commands for plugins when they are disabled
-
Constructor Details
-
CommandListener
Creates the listener for configurable commands- Parameters:
plugin- plugin reference
-
-
Method Details
-
onDisable
public void onDisable(org.bukkit.event.server.PluginDisableEvent event) Unregisters commands for plugins when they are disabled
- Parameters:
event- event details
-
onCommand
public void onCommand(org.bukkit.event.player.PlayerCommandPreprocessEvent event) Handles player commands- Parameters:
event- event details
-
onCommand
public void onCommand(org.bukkit.event.server.ServerCommandEvent event) Handles server commands- Parameters:
event- event details
-