diff --git a/FightSystem_Core/src/config.yml b/FightSystem_Core/src/config.yml index d64ac04..26bc9b3 100644 --- a/FightSystem_Core/src/config.yml +++ b/FightSystem_Core/src/config.yml @@ -42,7 +42,7 @@ Arena: # If ground walkable, teams can walk below the lower arena border during setup GroundWalkable: true # defaults to true if missing # Disable snow melt - SnowMelt: false + DisableSnowMelt: false Schematic: # The size of the schematics Size: diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/Config.java b/FightSystem_Core/src/de/steamwar/fightsystem/Config.java index 8e00233..1292a70 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/Config.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/Config.java @@ -69,7 +69,7 @@ public class Config { public static final int PreperationArea; public static final int WaterDepth; public static final boolean GroundWalkable; - public static final boolean SnowMelt; + public static final boolean DisableSnowMelt; //schematic parameter public static final boolean RanksEnabled; @@ -165,7 +165,7 @@ public class Config { int schem2BorderZ = config.getInt("Arena.Schem2Border.z", 24); PreperationArea = config.getInt("Arena.BorderFromSchematic", 12); GroundWalkable = config.getBoolean("Arena.GroundWalkable", true); - SnowMelt = config.getBoolean("Arena.SnowMelt", false); + DisableSnowMelt = config.getBoolean("Arena.DisableSnowMelt", false); int schemsizeX = config.getInt("Schematic.Size.x"); int schemsizeY = config.getInt("Schematic.Size.y"); diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/listener/BlockFadeListener.java b/FightSystem_Core/src/de/steamwar/fightsystem/listener/BlockFadeListener.java index ab16f99..a2ce7f5 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/listener/BlockFadeListener.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/listener/BlockFadeListener.java @@ -17,7 +17,7 @@ public class BlockFadeListener implements Listener { @EventHandler public void onBlockFade(BlockFadeEvent event) { - if(!Config.SnowMelt) return; + if(!Config.DisableSnowMelt) return; if (event.getBlock().getType() == Material.SNOW_BLOCK || event.getBlock().getType() == Material.SNOW || event.getBlock().getType() == Material.ICE) { event.setCancelled(true); }