Factions API - Check if a location is a warzone?

Discussion in 'Plugin Development' started by EgyptianKing, Sep 3, 2014.

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

    EgyptianKing

    Does anyone know how to check if a location is a warzone in Factions?
     
  2. Offline

    ColonelHedgehog

  3. Offline

    SmooshCakez

    As shown as an example on the page ColonelHedgehog linked to,
    Code:java
    1. Location location = new Location(Bukkit.getWorld("derp"), 1337, 1337, 1337);
    2. Faction faction = BoardColls.get().getFactionAt(PS.valueOf(location));

    AFAIK, there's a faction.getName() that you could use on the faction variable, and check if the name is WarZone.
     
    EgyptianKing likes this.
  4. Offline

    ColonelHedgehog

    1337, 1337, 1337

    I see what you did there. c:
     
    EgyptianKing and bennie3211 like this.
Thread Status:
Not open for further replies.

Share This Page