Fixed locale bug

This commit is contained in:
Tastybento 2017-10-30 17:17:50 -07:00
parent 50cd6aa5af
commit d061ecc247
1 changed files with 2 additions and 1 deletions

View File

@ -123,7 +123,8 @@ public class WarpPanel extends AddonHelper implements Listener {
// The player that clicked the item // The player that clicked the item
final Player player = (Player) event.getWhoClicked(); final Player player = (Player) event.getWhoClicked();
String title = inventory.getTitle(); 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; return;
} }
event.setCancelled(true); event.setCancelled(true);