Fix FUpgradesGUI Spam on 1.14+
This commit is contained in:
parent
463d5b9a69
commit
a495f71278
@ -75,7 +75,7 @@ public class FUpgradesGUI implements Listener {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
FPlayer fme = FPlayers.getInstance().getByPlayer((Player) e.getWhoClicked());
|
FPlayer fme = FPlayers.getInstance().getByPlayer((Player) e.getWhoClicked());
|
||||||
if (e.getClickedInventory().getTitle().equalsIgnoreCase(SaberFactions.plugin.color(SaberFactions.plugin.getConfig().getString("fupgrades.MainMenu.Title").replace("{faction}", fme.getFaction().getTag())))) {
|
if (e.getView().getTitle().equalsIgnoreCase(SaberFactions.plugin.color(SaberFactions.plugin.getConfig().getString("fupgrades.MainMenu.Title").replace("{faction}", fme.getFaction().getTag())))) {
|
||||||
e.setCancelled(true);
|
e.setCancelled(true);
|
||||||
ItemStack[] items = buildItems(fme);
|
ItemStack[] items = buildItems(fme);
|
||||||
ItemStack cropItem = items[2];
|
ItemStack cropItem = items[2];
|
||||||
|
Loading…
Reference in New Issue
Block a user