public Location loadLobby() { return new Location( plugin.getServer().getWorld(DataConfiguration.getData().getDataFile().getString("lobby.w")), DataConfiguration.getData().getDataFile().getInt("lobby.x") + .5, DataConfiguration.getData().getDataFile().getInt("lobby.y"), DataConfiguration.getData().getDataFile().getInt("lobby.z") + .5, DataConfiguration.getData().getDataFile().getInt("lobby.yaw"), DataConfiguration.getData().getDataFile().getInt("lobby.pitch")); }
public Location loadTeamSpawn(String map, String team) { return new Location( plugin .getServer() .getWorld(MapConfiguration.getMaps().getMap(map).getString(team + ".spawn.w")), MapConfiguration.getMaps().getMap(map).getInt(team + ".spawn.x") + .5, MapConfiguration.getMaps().getMap(map).getInt(team + ".spawn.y"), MapConfiguration.getMaps().getMap(map).getInt(team + ".spawn.z") + .5, MapConfiguration.getMaps().getMap(map).getInt(team + ".spawn.yaw"), MapConfiguration.getMaps().getMap(map).getInt(team + ".spawn.pitch")); }