Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Checks if Player moves

Comments in 'Plugin Development' started by Sensej, Jul 20, 2015.

  1. Sensej
    Offline

    Sensej New Member

    Joined:
    Aug 5, 2014
    Posts:
    64
    Hey,
    how can i check if a player moves or not?
    I tried it with the PlayerMoveEvent but this will get triggered also when a player looks around and i dont want this.
  2. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    Save last positions into an array if last position is not equal to current trigger your code and update last position
    mamayadesu and CraftYourBukkit like this.
  3. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    There is getFrom in PlayerMoveEvent.

Share This Page

Advertisement