1
0
mirror of https://github.com/BentoBoxWorld/Warps.git synced 2024-11-15 23:25:27 +01:00

Fixed locale bug

This commit is contained in:
Tastybento 2017-10-30 17:17:50 -07:00
parent 50cd6aa5af
commit d061ecc247

View File

@ -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);