From d061ecc247e5e176966a1ac51ea019fd29ceb975 Mon Sep 17 00:00:00 2001 From: Tastybento Date: Mon, 30 Oct 2017 17:17:50 -0700 Subject: [PATCH] Fixed locale bug --- src/bskyblock/addin/warps/WarpPanel.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bskyblock/addin/warps/WarpPanel.java b/src/bskyblock/addin/warps/WarpPanel.java index 2eccc39..ccab906 100644 --- a/src/bskyblock/addin/warps/WarpPanel.java +++ b/src/bskyblock/addin/warps/WarpPanel.java @@ -123,7 +123,8 @@ public class WarpPanel extends AddonHelper implements Listener { // The player that clicked the item final Player player = (Player) event.getWhoClicked(); String title = inventory.getTitle(); - if (!inventory.getTitle().startsWith(plugin.getLocale(player.getUniqueId()).get("warps.title") + " #")) { + // The title must be the same for all locales because the warp panels are common + if (!inventory.getTitle().startsWith(plugin.getLocale().get("warps.title") + " #")) { return; } event.setCancelled(true);