Faction API Help

Discussion in 'Plugin Development' started by MoseMister, Mar 12, 2014.

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

    MoseMister

    hello, im having problems with something that sounds very simple.
    what im trying to do is check if a faction is in a certain location. if it is not then 'return true'
    this is the code i tried using;
    Code:
                Location location = new Location(Bukkit.getWorld(world), X, Y, Z);
                Faction faction = BoardColls.get().getFactionAt(PS.valueOf(location));
                Faction wilderness = FactionColls.get().getForUniverse(world).getNone();
                if (wilderness == faction) {
                  return true;
                }
    this code does not work, can someone tell me why and how to make it work. Thanks

    sorry i meant if the location is equal to the faction land 'wilderness' then return true

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 7, 2016
Thread Status:
Not open for further replies.

Share This Page