Find players position and 2 ticks later compare it

Discussion in 'Plugin Development' started by jumbledProgram, Sep 1, 2020.

Thread Status:
Not open for further replies.
  1. Title says it all, im having trouble using playermoveevent because it detects player rotating too.
     
  2. Online

    timtower Administrator Administrator Moderator

  3. Offline

    Strahan

    In the PME, check if the from X/Y/Z is the same as the to X/Y/Z and if so, return. Then after that you can do as timtower suggested and fire off a timer with a start delay of whatever delay you need then check the position in the timer.
     
  4. Offline

    Kars

    Have a static HashMap<String, Location> for every player's UUID and location
    Have a repeating event that compares the location from the map to the player's current location
    If different, the player moved

    @jumbledProgram
     
Thread Status:
Not open for further replies.

Share This Page