How to check if the player doesn't move by x secoond

Discussion in 'Plugin Development' started by StatywPlay, Aug 27, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    StatywPlay

    How to check if the player doesn't move by x secoond plugin perform a method
     
  2. Offline

    Plugers11

  3. Offline

    TheMcScavenger

    • At time x, store the player's location in the HashMap
    • At time y, get the player's location from the HashMap
    • Compare it to the current location
     
    • Make a PlayerMoveEvent
    • Create a hashmap
    • In the PlayerMoveEvent save the location of the player and the time
    • Make a repeating task checking every 20 ticks if the location is still the same
     
Thread Status:
Not open for further replies.

Share This Page