From 24806019b8be36f158cba44305481d7ee877680f Mon Sep 17 00:00:00 2001 From: tastybento Date: Sat, 26 Jan 2019 22:07:26 -0800 Subject: [PATCH] Addresses review issues. --- .../java/world/bentobox/bentobox/api/addons/GameModeAddon.java | 1 + .../java/world/bentobox/bentobox/managers/AddonsManager.java | 1 + .../java/world/bentobox/bentobox/managers/HooksManager.java | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/world/bentobox/bentobox/api/addons/GameModeAddon.java b/src/main/java/world/bentobox/bentobox/api/addons/GameModeAddon.java index 5c19d0586..346ffdf21 100644 --- a/src/main/java/world/bentobox/bentobox/api/addons/GameModeAddon.java +++ b/src/main/java/world/bentobox/bentobox/api/addons/GameModeAddon.java @@ -63,6 +63,7 @@ public abstract class GameModeAddon extends Addon { * Checks if world is governed by this game mode * @param world - world to check * @return true if in a world or false if not + * @since 1.1.1 */ public boolean inWorld(World world) { if (world == null) { diff --git a/src/main/java/world/bentobox/bentobox/managers/AddonsManager.java b/src/main/java/world/bentobox/bentobox/managers/AddonsManager.java index 7ad2e2206..b02b67345 100644 --- a/src/main/java/world/bentobox/bentobox/managers/AddonsManager.java +++ b/src/main/java/world/bentobox/bentobox/managers/AddonsManager.java @@ -358,6 +358,7 @@ public class AddonsManager { * @param worldName - name of world * @param id - specific generator id * @return ChunkGenerator or null if none found + * @since 1.1.1 */ public ChunkGenerator getDefaultWorldGenerator(String worldName, String id) { return getGameModeAddons().stream().filter(gm -> gm.inWorld(Bukkit.getWorld(worldName))).findFirst().map(gm -> gm.getDefaultWorldGenerator(worldName, id)).orElse(null); diff --git a/src/main/java/world/bentobox/bentobox/managers/HooksManager.java b/src/main/java/world/bentobox/bentobox/managers/HooksManager.java index 732908436..f73fa44a6 100644 --- a/src/main/java/world/bentobox/bentobox/managers/HooksManager.java +++ b/src/main/java/world/bentobox/bentobox/managers/HooksManager.java @@ -28,7 +28,7 @@ public class HooksManager { return; } } - plugin.logError("Could not hook with " + hook.getPluginName() + ((hook.getFailureCause() != null) ? " because: " + hook.getFailureCause() : "") + ". Skipping..."); + plugin.log("Could not hook with " + hook.getPluginName() + ((hook.getFailureCause() != null) ? " because: " + hook.getFailureCause() : "") + ". Skipping..."); } public List getHooks() {