rename property

This commit is contained in:
Jakob Schulz
2026-05-19 19:24:03 +02:00
parent e9c766dbbb
commit deb56c0c02
3 changed files with 11 additions and 8 deletions
+4 -1
View File
@@ -49,12 +49,15 @@ Arena:
# Disable snow and ice melting
DisableSnowMelt: false # defaults to false if missing
# Disabled blocks from forming
BlockedFormedBlocks:
DisabledBlockForms:
# For Cobble Generators
# - COBBLESTONE
# - BASALT
# - STONE
# - OBSIDIAN
# Disable ice specifically from forming
# Deprecated, add ICE to DisabledBlockForms list instead
DisableIceForm: false
# Allow leaving the arena area as spectator
Leaveable: false # defaults to false if missing
# Allow missiles to fly to the enemy and not stop at the schem border.
@@ -32,7 +32,7 @@ import org.bukkit.event.block.BlockFormEvent;
public class BlockFormListener implements Listener {
public BlockFormListener() {
boolean enabled = !Config.GameModeConfig.Arena.BlockedFormedBlocks.isEmpty();
boolean enabled = !Config.GameModeConfig.Arena.DisabledBlockForms.isEmpty();
new StateDependentListener(enabled, FightState.All, this);
}
@@ -41,7 +41,7 @@ public class BlockFormListener implements Listener {
if (!Config.ArenaRegion.inRegion(event.getBlock())) return;
Material material = event.getNewState().getType();
if (Config.GameModeConfig.Arena.BlockedFormedBlocks.contains(material)) {
if (Config.GameModeConfig.Arena.DisabledBlockForms.contains(material)) {
event.setCancelled(true);
}
}