Class PlayerMove

  • All Implemented Interfaces:
    org.bukkit.event.Cancellable

    public final class PlayerMove
    extends BasePlayer
    implements org.bukkit.event.Cancellable
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.bukkit.event.Event

        org.bukkit.event.Event.Result
    • 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
    • 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 command
        locationFrom - The location the player has moved from
        locationTo - 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 interface org.bukkit.event.Cancellable
      • setCancelled

        public void setCancelled​(boolean cancel)
        Specified by:
        setCancelled in interface org.bukkit.event.Cancellable