From 08be1e15d114a0e066f35161286221a995b0e187 Mon Sep 17 00:00:00 2001 From: Florian CUNY Date: Thu, 13 Dec 2018 10:00:14 +0100 Subject: [PATCH] Revert "Removed unused World parameter in Island#showMembers()" This reverts commit 4169ae9f16e3a132fd747854728ff9a3ee4527da. --- .../world/bentobox/bentobox/database/objects/Island.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/world/bentobox/bentobox/database/objects/Island.java b/src/main/java/world/bentobox/bentobox/database/objects/Island.java index 2e618b775..f07a0befd 100644 --- a/src/main/java/world/bentobox/bentobox/database/objects/Island.java +++ b/src/main/java/world/bentobox/bentobox/database/objects/Island.java @@ -613,7 +613,7 @@ public class Island implements DataObject { String total = plugin.getIWM().getResetLimit(world) < 0 ? "Unlimited" : String.valueOf(plugin.getIWM().getResetLimit(world)); user.sendMessage("commands.admin.info.resets-left", "[number]", resets, "[total]", total); // Show team members - showMembers(plugin, user); + showMembers(plugin, user, world); } Vector location = center.toVector(); user.sendMessage("commands.admin.info.island-location", "[xyz]", Util.xyz(location)); @@ -639,8 +639,9 @@ public class Island implements DataObject { * Shows the members of this island * @param plugin - plugin * @param user - user who is requesting + * @param world - world to check */ - public void showMembers(BentoBox plugin, User user) { + public void showMembers(BentoBox plugin, User user, World world) { user.sendMessage("commands.admin.info.team-members-title"); members.forEach((u, i) -> { if (owner.equals(u)) {