Fixed lightning-setting in config-file actually doing something.
This commit is contained in:
@@ -1081,6 +1081,11 @@ public class Arena
|
||||
return pvp;
|
||||
}
|
||||
|
||||
public boolean isLightningEnabled()
|
||||
{
|
||||
return lightning;
|
||||
}
|
||||
|
||||
public boolean isBossWave()
|
||||
{
|
||||
return bossWave != null;
|
||||
|
||||
@@ -38,8 +38,9 @@ public class SpecialWave extends NormalWave
|
||||
List<Location> validSpawnpoints = WaveUtils.getValidSpawnpoints(getArena(), getArena().getLivingPlayers());
|
||||
|
||||
// Strike some lightning!
|
||||
for (Location loc : validSpawnpoints)
|
||||
getWorld().strikeLightningEffect(loc);
|
||||
if (getArena().isLightningEnabled())
|
||||
for (Location loc : validSpawnpoints)
|
||||
getWorld().strikeLightningEffect(loc);
|
||||
|
||||
// Spawn all the monsters
|
||||
spawnAll(getMonstersToSpawn(getArena().getPlayerCount()), validSpawnpoints);
|
||||
|
||||
Reference in New Issue
Block a user