From 463d5b9a69a6d4934db503927047019941c88131 Mon Sep 17 00:00:00 2001 From: ProSavage Date: Thu, 18 Jul 2019 14:59:24 -0500 Subject: [PATCH] Inventoryview spam fixed on 1.14+. --- .../massivecraft/factions/listeners/FactionsPlayerListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/massivecraft/factions/listeners/FactionsPlayerListener.java b/src/main/java/com/massivecraft/factions/listeners/FactionsPlayerListener.java index fd637832..ae089061 100644 --- a/src/main/java/com/massivecraft/factions/listeners/FactionsPlayerListener.java +++ b/src/main/java/com/massivecraft/factions/listeners/FactionsPlayerListener.java @@ -676,7 +676,7 @@ public class FactionsPlayerListener implements Listener { if (e.getCurrentItem() == null) return; - if (!e.getInventory().getName().endsWith("'s Inventory View")) + if (!e.getView().getTitle().endsWith("'s Inventory View")) return; e.setCancelled(true);