Examples of protectZoneWallAgainstPlayer()


Examples of com.tommytony.war.Warzone.protectZoneWallAgainstPlayer()

    Team currentTeam = Team.getTeamByPlayerName(player.getName());
    Warzone playerWarzone = Warzone.getZoneByPlayerName(player.getName()); // this uses the teams, so it asks: get the player's team's warzone
    boolean protecting = false;
    if (currentTeam != null) {
      if (playerWarzone.getWarzoneConfig().getBoolean(WarzoneConfig.GLASSWALLS)) {
        protecting = playerWarzone.protectZoneWallAgainstPlayer(player);
      }
    } else {
      Warzone nearbyZone = War.war.zoneOfZoneWallAtProximity(playerLoc);
      if (nearbyZone != null && nearbyZone.getWarzoneConfig().getBoolean(WarzoneConfig.GLASSWALLS) && !isMaker) {
        protecting = nearbyZone.protectZoneWallAgainstPlayer(player);
View Full Code Here

Examples of com.tommytony.war.Warzone.protectZoneWallAgainstPlayer()

        protecting = playerWarzone.protectZoneWallAgainstPlayer(player);
      }
    } else {
      Warzone nearbyZone = War.war.zoneOfZoneWallAtProximity(playerLoc);
      if (nearbyZone != null && nearbyZone.getWarzoneConfig().getBoolean(WarzoneConfig.GLASSWALLS) && !isMaker) {
        protecting = nearbyZone.protectZoneWallAgainstPlayer(player);
      }
    }

    if (!protecting) {
      // zone makers still need to delete their walls
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.