Examples of loadStructure()


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

        War.war.getLogger().log(Level.WARNING, "Failed to load warzone structures volume", e);
      }
      // monument blocks
      for (Monument monument : warzone.getMonuments()) {
        try {
          monument.setVolume(warzone.loadStructure(monument.getName(), connection));
        } catch (SQLException e) {
          War.war.getLogger().log(Level.WARNING, "Failed to load warzone structures volume", e);
        }
      }
     
View Full Code Here

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

      }
     
      // bomb blocks
      for (Bomb bomb : warzone.getBombs()) {
        try {
          bomb.setVolume(warzone.loadStructure("bomb-" + bomb.getName(), connection));
        } catch (SQLException e) {
          War.war.getLogger().log(Level.WARNING, "Failed to load warzone structures volume", e);
        }
      }
     
View Full Code Here

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

      }
     
      // cake blocks
      for (Cake cake : warzone.getCakes()) {
        try {
          cake.setVolume(warzone.loadStructure("cake-" + cake.getName(), connection));
        } catch (SQLException e) {
          War.war.getLogger().log(Level.WARNING, "Failed to load warzone structures volume", e);
        }
      }
     
View Full Code Here

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

     
      // team spawn blocks
      for (Team team : warzone.getTeams()) {
        for (Location teamSpawn : team.getTeamSpawns()) {
          try {
            team.setSpawnVolume(teamSpawn, warzone.loadStructure(team.getName() + team.getTeamSpawns().indexOf(teamSpawn), connection));
          } catch (SQLException e) {
            War.war.getLogger().log(Level.WARNING, "Failed to load warzone structures volume", e);
          }
        }
        if (team.getTeamFlag() != null) {
View Full Code Here

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

            War.war.getLogger().log(Level.WARNING, "Failed to load warzone structures volume", e);
          }
        }
        if (team.getTeamFlag() != null) {
          try {
            team.setFlagVolume(warzone.loadStructure(team.getName() + "flag", connection));
          } catch (SQLException e) {
            War.war.getLogger().log(Level.WARNING, "Failed to load warzone structures volume", e);
          }
        }
      }
View Full Code Here

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

      World lobbyWorld = War.war.getServer().getWorld(lobbyWorldName);
           
      // create the lobby
      Volume lobbyVolume = null;
      try {
        lobbyVolume = warzone.loadStructure("lobby", lobbyWorld, connection);
      } catch (SQLException e) {
        War.war.getLogger().log(Level.WARNING, "Failed to load warzone lobby", e);
      }
      ZoneLobby lobby = new ZoneLobby(warzone, lobbyFace, lobbyVolume);
      warzone.setLobby(lobby);
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.