Getting if location is faction land (FactionsUUID)

Discussion in 'Spigot Plugin Development' started by AllinoneGamer, Apr 15, 2017.

  1. i need to check if a specific location is faction land, anyone know how to do this with factionsuuid in my build path.
  2. This code from one of my old projects should work:
    Code (Text):

    private boolean isInFactionTerritory(final Location location, final Faction faction) {
        return Board.getInstance().getFactionAt(new FLocation(location)).equals(faction);
    • Useful Useful x 1