org.bukkit.event.server
Class ServerCommandEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.server.ServerEvent
org.bukkit.event.server.ServerCommandEvent
- Direct Known Subclasses:
- RemoteServerCommandEvent
public class ServerCommandEvent
- extends ServerEvent
Server Command events
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServerCommandEvent
public ServerCommandEvent(CommandSender sender,
String command)
getCommand
public String getCommand()
- Gets the command that the user is attempting to execute from the console
- Returns:
- Command the user is attempting to execute
setCommand
public void setCommand(String message)
- Sets the command that the server will execute
- Parameters:
message
- New message that the server will execute
getSender
public CommandSender getSender()
- Get the command sender.
- Returns:
- The sender
getHandlers
public HandlerList getHandlers()
- Specified by:
getHandlers
in class Event
getHandlerList
public static HandlerList getHandlerList()
Copyright © 2013. All Rights Reserved.