Class PlayerMove
- java.lang.Object
-
- org.bukkit.event.Event
-
- work.torp.domain.api.events.player.BasePlayer
-
- work.torp.domain.api.events.player.PlayerMove
-
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public final class PlayerMove extends BasePlayer implements org.bukkit.event.Cancellable
-
-
Constructor Summary
Constructors Constructor Description PlayerMove(org.bukkit.entity.Player player, org.bukkit.Location locationFrom, org.bukkit.Location locationTo)
PlayerMove This event is called when a command is entered by a player moves at least 1 block
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCancelReason()
org.bukkit.Location
getLocationFrom()
org.bukkit.Location
getLocationTo()
boolean
isCancelled()
void
setCancelled(boolean cancel)
void
setCancelReason(java.lang.String cancelReason)
-
Methods inherited from class work.torp.domain.api.events.player.BasePlayer
getHandlerList, getHandlers, getPlayer, logBaseValues
-
-
-
-
Constructor Detail
-
PlayerMove
public PlayerMove(org.bukkit.entity.Player player, org.bukkit.Location locationFrom, org.bukkit.Location locationTo)
PlayerMove This event is called when a command is entered by a player moves at least 1 block- Parameters:
player
- The player that ran the commandlocationFrom
- The location the player has moved fromlocationTo
- The location the player has moved to
-
-
Method Detail
-
getLocationFrom
public org.bukkit.Location getLocationFrom()
-
getLocationTo
public org.bukkit.Location getLocationTo()
-
getCancelReason
public java.lang.String getCancelReason()
-
setCancelReason
public void setCancelReason(java.lang.String cancelReason)
-
isCancelled
public boolean isCancelled()
- Specified by:
isCancelled
in interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancel)
- Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
-
-