EntityMoveEvent

Discussion in 'Spigot Plugin Development' started by LuckOfEvil, May 19, 2015.

  1. I want to modify Spigot that my plugin can use an EntityMoveEvent to stop entitys from walking into other WorldGuard regions. I believe you have a reason(like performence) that you don't program an EntityMoveEvent. I want to ask you if there is a better way to stop entitys from moving into other worldguard regions.

    //Sorry for my bad english! I'm from germany....
     
  2. Use a worldguard api, and check if they move in that region and cancel it then.
     
  3. I read that Towny does something like what you want. They use timers and then check for entities within a region and remove them.