From 4b72c7710df94e5385868633891d3c1139fcfff1 Mon Sep 17 00:00:00 2001 From: Fabrizio La Rosa Date: Sat, 13 Jun 2020 22:44:25 +0200 Subject: [PATCH] Default value for WorldBorder --- src/main/java/com/songoda/skyblock/island/Island.java | 2 +- src/main/resources/config.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/songoda/skyblock/island/Island.java b/src/main/java/com/songoda/skyblock/island/Island.java index 477abaf9..79f89b27 100644 --- a/src/main/java/com/songoda/skyblock/island/Island.java +++ b/src/main/java/com/songoda/skyblock/island/Island.java @@ -113,7 +113,7 @@ public class Island { } if (configLoad.getString("Border") == null) { - configLoad.set("Border.Enable", true); + configLoad.set("Border.Enable", mainConfig.getFileConfiguration().getBoolean("Island.WorldBorder.Default", false)); configLoad.set("Border.Color", WorldBorder.Color.Blue.name()); } diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index 0bd91b2b..e434bfdb 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -87,6 +87,8 @@ Island: # Prevent blocks being placed that would go outside of the Island border # Pistons | Dispensers | Liquid Flow Block: true + # Enabled/Disabled by default + Default: false Spawn: # Prevents blocks being placed inside the location where players spawn on # an Island. When setting the spawn points, this option when enabled will