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