Worldguard regions

Discussion in 'Plugin Development' started by Tehmaker, Dec 26, 2014.

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

    Tehmaker

    Is there a part of the API to detect when a player enters a region, or do I have to write a work-around?
     
  2. Offline

    Windy Day

    @Tehmaker
    I'm not very familiar with the API but I think there is an event called RegionEnterEvent.
     
    Last edited: Dec 27, 2014
  3. Offline

    CubieX

    WorldGuard has no custom event for this.
    You have to check the current region of each player in the PlayerMoveEvent for example and do your logic there.
    You may have to store the current region of each player to check if he entered a new region or left one.
     
  4. Offline

    Freack100

    @CubieX
    I'm pretty sure that WorldGuard/WorldEdit/an extension of one of them, allows you to interact with region entering/leaving through events.
     
  5. Offline

    CubieX

    Look at the API docs. There is no event for this.
    There are some events. But nothing that the OP needs.
    I utilized the WG API myself and had a similar "problem". ;)
     
Thread Status:
Not open for further replies.

Share This Page