Solved WorldGaurd API 1.14+

Discussion in 'Spigot Plugin Development' started by Zdennick, Sep 11, 2019.

  1. Hello there, I was wondering if people could help me with some of the issues I face.

    First of all there are a few things I want to know about this API.

    for example:
    how to check if a player enters a region.
    how to check in which region the player is located.
    What the name is for that region.

    I'm a bit confused because all code of <1.12 no longer works.
  2. This stuff should hopefully work still for the latest worldguard

    I don't know of the best way to check if a player entered a region without doing the code above but when a player move.

    But it shows how to get a RegionManager from a World then get an "ApplicableRegionSet" from the x,y,z. After that you can get the regions which will have the name.
    • Useful Useful x 1