From 856572941e6f3a8a3cc3de3aa60989d30ab1f3dd Mon Sep 17 00:00:00 2001 From: Florian CUNY Date: Tue, 22 Oct 2019 09:44:48 +0200 Subject: [PATCH] Removed no longer needed allow-nether and allow-end warnings Fixed https://github.com/BentoBoxWorld/BentoBox/issues/977 --- .../bentobox/managers/IslandWorldManager.java | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/src/main/java/world/bentobox/bentobox/managers/IslandWorldManager.java b/src/main/java/world/bentobox/bentobox/managers/IslandWorldManager.java index 012b805ed..2c633314f 100644 --- a/src/main/java/world/bentobox/bentobox/managers/IslandWorldManager.java +++ b/src/main/java/world/bentobox/bentobox/managers/IslandWorldManager.java @@ -155,38 +155,18 @@ public class IslandWorldManager { // Call Multiverse registerToMultiverse(world, true); if (settings.isNetherGenerate()) { - if (!Bukkit.getAllowNether()) { - // Warn the users that players might not be able to teleport to these worlds later on - plugin.logWarning("'allow-nether' is set to 'false' in the server.properties file!"); - plugin.logWarning("This means that players won't be able to teleport to the Nether through portals."); - plugin.logWarning("Please turn off the server and set 'allow-nether' to 'true' in the server.properties file."); - } - gameModes.put(gameMode.getNetherWorld(), gameMode); if (settings.isNetherIslands()) { registerToMultiverse(gameMode.getNetherWorld(), true); } } if (settings.isEndGenerate()) { - if (!Bukkit.getAllowEnd()) { - // Warn the users that players might not be able to teleport to these worlds later on - plugin.logWarning("'settings.allow-end' is set to 'false' in the bukkit.yml file!"); - plugin.logWarning("This means that players won't be able to teleport to the End through portals."); - plugin.logWarning("Please turn off the server and set 'settings.allow-end' to 'true' in the bukkit.yml file."); - } - gameModes.put(gameMode.getEndWorld(), gameMode); if (settings.isEndIslands()) { registerToMultiverse(gameMode.getEndWorld(), true); } } - // If allow-nether or allow-end is false, then we will send the user some help. - if ((settings.isNetherGenerate() && !Bukkit.getAllowNether()) || (settings.isEndGenerate() && !Bukkit.getAllowEnd())) { - plugin.logWarning("If this is intended in order to prevent the vanilla worlds from being generated, please read the following page:"); - plugin.logWarning("https://github.com/BentoBoxWorld/BentoBox/wiki/Set-one-of-BentoBox-worlds-as-the-server-default-world"); - } - // Set default island settings plugin.getFlagsManager().getFlags().stream().filter(f -> f.getType().equals(Flag.Type.PROTECTION)) .forEach(f -> settings.getDefaultIslandFlags().putIfAbsent(f, f.getDefaultRank()));