com.mineblown.challengescript.scripting.event
Class ScriptPlayerMoveEvent

java.lang.Object
  extended by com.mineblown.challengescript.scripting.event.ScriptCancellableEvent
      extended by com.mineblown.challengescript.scripting.event.ScriptPlayerMoveEvent
Direct Known Subclasses:
ScriptPlayerBlockMoveEvent

public class ScriptPlayerMoveEvent
extends ScriptCancellableEvent


Constructor Summary
ScriptPlayerMoveEvent(ScriptLocation from, ScriptLocation to, ScriptPlayer player)
           
 
Method Summary
 ScriptLocation getFrom()
          Gets the ScriptLocation that the the player moved from.
 ScriptPlayer getPlayer()
          Gets the player that moved
 ScriptLocation getTo()
          Gets the ScriptLocation that the the player moved to.
 
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

ScriptPlayerMoveEvent

public ScriptPlayerMoveEvent(ScriptLocation from,
                             ScriptLocation to,
                             ScriptPlayer player)
Method Detail

getFrom

public ScriptLocation getFrom()
Gets the ScriptLocation that the the player moved from.

Returns:
The location.

getTo

public ScriptLocation getTo()
Gets the ScriptLocation that the the player moved to.

Returns:
the location.

getPlayer

public ScriptPlayer getPlayer()
Gets the player that moved

Returns:
moved player