Check SafeZone from other plugin

Discussion in 'Bukkit Help' started by kulersh, Jun 23, 2013.

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

    kulersh

    How to check in my plugin if player stands in safezone from plugin Factions.
     
  2. Offline

    xFireball

    I don't think that is possible
     
  3. Offline

    Zeebra


    Code:
    Board.getFactionAt(new FLocation(p.getLocation())).isSafeZone()
     
  4. Offline

    kulersh

    If i simply write in if its show error mamby i need import someting or something like that?
     
  5. Offline

    Zeebra

    Show me the method
     
  6. Offline

    kulersh


    Code:java
    1. import com.massivecraft.factions.Board;
    2. import com.massivecraft.factions.FLocation;
    3. import com.massivecraft.factions.Faction;


    Code:java
    1. if(Board.getFactionAt(new FLocation(p.getLocation())).isSafeZone() == false&& Board.getFactionAt(new FLocation(v.getLocation())).isSafeZone()){
    2. }


    And for me its look like this
    if(Board.getFactionAt(new FLocation(p.getLocation())).isSafeZone() == false && Board.getFactionAt(new FLocation(v.getLocation())).isSafeZone())
     
  7. Offline

    Zeebra

    try
    Code:
                    if (!Board.getFactionAt(new FLocation(location)).isSafeZone()) {
     
                    }
     
  8. Offline

    kulersh

    Problem is @ isSafeZone() Look at the picture why its strike-thought http://prntscr.com/1bhchg
     
  9. Offline

    Zeebra

    What is the error say?
     
  10. Offline

    kulersh

  11. Offline

    Zeebra

  12. Offline

    kulersh

    Nothing its allways return true
     
Thread Status:
Not open for further replies.

Share This Page