Check if player is standing in warzone land

Discussion in 'Spigot Plugin Development' started by EvanTheSurfer, Jun 18, 2016.

  1. I can check if they are in wilderness or ssafezone, but there isnt a method for checking if they are in warzone and neither is there a getName Method. My code:
    Code (Text):
                        FLocation loc = new FLocation(player.getLocation());          
                        if(Board.getFactionAt(loc).isSafeZone())  {
                            event.setCancelled(false);
                        }
     
  2. There is definitely a isWarZone() in place of isSafeZone().....

    And you can do getTag() on faction objects to get the name.
     
  3. Nope, it dosent make sense. I am using the factionsone api[/QUOTE]
     
  4. Code (Text):

    FLocation loc = new FLocation(player.getLocation());          
    if(Board.getFactionAt(loc).isSafeZone() || Board.getFactionAt(loc).isWarZone())  {
         event.setCancelled(false);
    }