diff --git a/FightSystem_API/src/de/steamwar/fightsystem/Config.java b/FightSystem_API/src/de/steamwar/fightsystem/Config.java index afc767a..308d85c 100644 --- a/FightSystem_API/src/de/steamwar/fightsystem/Config.java +++ b/FightSystem_API/src/de/steamwar/fightsystem/Config.java @@ -156,6 +156,9 @@ public class Config { AlignWater = worldconfig.getBoolean("Arena.AlignWater"); WaterDepth = worldconfig.getInt("Arena.WaterDepth"); GroundWalkable = config.getBoolean("Arena.GroundWalkable"); + double teamBlueSpawnOffsetX = worldconfig.getDouble("Arena.SpawnOffset.x"); + double teamBlueSpawnOffsetY = worldconfig.getDouble("Arena.SpawnOffset.y"); + double teamBlueSpawnOffsetZ = worldconfig.getDouble("Arena.SpawnOffset.z"); SchematicType = de.steamwar.sql.SchematicType.fromDB(config.getString("Schematic.SchematicType")); IgnorePublicOnly = config.getBoolean("Schematic.IgnorePublicOnly"); @@ -245,8 +248,14 @@ public class Config { TeamRedPasteZ = TeamBluePasteZ + TeamBluetoReddistanceZ; World world = Bukkit.getWorlds().get(0); - TeamBlueSpawn = new Location(world, TeamBluePasteX + 0.5, TeamBlueCornerY + (double)SchemsizeY + 0.5, TeamBluePasteZ + 0.5); - TeamRedSpawn = new Location(world, TeamRedPasteX + 0.5, TeamRedCornerY + (double)SchemsizeY + 0.5, TeamRedPasteZ + 0.5); + TeamBlueSpawn = new Location(world, + TeamBluePasteX + 0.5 + teamBlueSpawnOffsetX, + TeamBlueCornerY + 0.5 + teamBlueSpawnOffsetY, + TeamBluePasteZ + 0.5 + teamBlueSpawnOffsetZ); + TeamRedSpawn = new Location(world, + TeamRedPasteX + 0.5 - teamBlueSpawnOffsetX, + TeamRedCornerY + 0.5 + teamBlueSpawnOffsetY, + TeamRedPasteZ + 0.5 - teamBlueSpawnOffsetZ); SpecSpawn = new Location(world, TeamBluePasteX + TeamBluetoReddistanceX/2.0, TeamBlueCornerY + TeamBluetoReddistanceY/2.0 + SchemsizeY/2.0,