Package com.github.mafelp.minecraft
Class CommandListener
java.lang.Object
com.github.mafelp.minecraft.CommandListener
- All Implemented Interfaces:
org.bukkit.event.Listener
public class CommandListener
extends java.lang.Object
implements org.bukkit.event.Listener
The class that handles the command sending events.
-
Constructor Summary
Constructors Constructor Description CommandListener()
-
Method Summary
Modifier and Type Method Description void
onCommand(org.bukkit.event.player.PlayerCommandPreprocessEvent playerCommandPreprocessEvent)
The method that handles commands executed by a player.void
onServerCommand(org.bukkit.event.server.ServerCommandEvent serverCommandEvent)
The method that handles commands executed in the server's console.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CommandListener
public CommandListener()
-
-
Method Details
-
onCommand
public void onCommand(org.bukkit.event.player.PlayerCommandPreprocessEvent playerCommandPreprocessEvent)The method that handles commands executed by a player.- Parameters:
playerCommandPreprocessEvent
- The event passed in by the plugin framework with information about the event.
-
onServerCommand
public void onServerCommand(org.bukkit.event.server.ServerCommandEvent serverCommandEvent)The method that handles commands executed in the server's console.- Parameters:
serverCommandEvent
- The event passed in by the plugin framework with information about the event.
-