Class PlayerMoveEvent
java.lang.Object
com.welcome234.pluginsystem.events.PlayerMoveEvent
Called when a player moves
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleGets the X coordinate the player has moved todoubleGets the Y coordinate the player has moved toGets the player who has movedbooleanGets whether this event is cancelledvoidsetCancelled(boolean cancelled)Sets the cancellation status of this event
-
Constructor Details
-
PlayerMoveEvent
-
-
Method Details
-
getPlayer
Gets the player who has moved- Returns:
- Player instance
-
getMovedX
public double getMovedX()Gets the X coordinate the player has moved to- Returns:
- X-coordinate
-
getMovedY
public double getMovedY()Gets the Y coordinate the player has moved to- Returns:
- Y-coordinate
-
isCancelled
public boolean isCancelled()Gets whether this event is cancelled- Returns:
- Whether cancelled
-
setCancelled
public void setCancelled(boolean cancelled)Sets the cancellation status of this eventIf a player move event is cancelled, the player will be moved back to the position before this move
- Parameters:
cancelled- Whether cancelled
-