Inventoryview spam fixed on 1.14+.

This commit is contained in:
ProSavage 2019-07-18 14:59:24 -05:00
parent 3f20d67fd7
commit 463d5b9a69

View File

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