PlayerMoveEvent thread safety

Discussion in 'Plugin Development' started by xize, May 11, 2013.

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

    xize

    Hello,

    I'm wondering how to make PlayerMoveEvent more safe, some people might use a scheduler inside the PlayerMoveEvent, however Im really sceptic to do this because I don't like to create a new scheduler for each tick just to cooldown the event.

    Has somebody some advice how to cool it down without the event gets called everytime or should I register the event in the scheduler? Instead of having the scheduler inside the event which I saw some people do?

    Thanks, this really concerns me
     
  2. Offline

    catageek

    If I try to understand what you mean, you would like to have the event called not on every move of the player, but if he crosses a cube line for example.

    A new event is currently in Bukkit git repository and waits for submission in the released code. It should be available in a next release.
     
Thread Status:
Not open for further replies.

Share This Page