com.mineblown.challengescript.scripting.event
Class ScriptPlayerCommandEvent

java.lang.Object
  extended by com.mineblown.challengescript.scripting.event.ScriptCancellableEvent
      extended by com.mineblown.challengescript.scripting.event.ScriptPlayerCommandEvent

public class ScriptPlayerCommandEvent
extends ScriptCancellableEvent


Constructor Summary
ScriptPlayerCommandEvent(java.lang.String message, ScriptPlayer player)
           
 
Method Summary
 java.lang.String[] getArgs()
          Gets the command arguments.
 java.lang.String getCommand()
          Gets the command.
 java.lang.String getMessage()
          Gets the raw command message.
 ScriptPlayer getPlayer()
          Gets the player that issued this command
 
Methods inherited from class com.mineblown.challengescript.scripting.event.ScriptCancellableEvent
isCancelled, setCancelled
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptPlayerCommandEvent

public ScriptPlayerCommandEvent(java.lang.String message,
                                ScriptPlayer player)
Method Detail

getMessage

public java.lang.String getMessage()
Gets the raw command message.

Returns:
The message, excluding the /

getCommand

public java.lang.String getCommand()
Gets the command.

Returns:
The name of the command.

getArgs

public java.lang.String[] getArgs()
Gets the command arguments.

Returns:
And array of command arguments.

getPlayer

public ScriptPlayer getPlayer()
Gets the player that issued this command

Returns:
Player