How to detect if player entered specific WorldGuard region?

Discussion in 'Plugin Development' started by Ibas, Jul 15, 2013.

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

    Ibas

    Hello,

    How to detect if player entered specific WorldGuard region? I want to run custom (my made) method if player has entered to specific region.
     
  2. Offline

    Minecrell

    Ibas
    Use PlayerMoveEvent and check if the player is in the WorldGuard region, then call your method.
     
  3. Offline

    Ibas


    No, I don't want to use that event, because it's happening every second so server would take heavy load, is there any api I cant find this kind of method on worldguard docs..
     
  4. Offline

    Minecrell

    There is no WorldGuard-API for that... Use PlayerMoveEvent yourself or use http://dev.bukkit.org/bukkit-plugins/worldguard-region-events/ which is actually just using PlayerMoveEvent and some others to trigger the events.
     
  5. Offline

    Eats_Rainbows

    You could use a repeating task that check every 5 seconds if a player's location is inside a WorldGaurd location.
     
Thread Status:
Not open for further replies.

Share This Page