Inventoryview spam fixed on 1.14+.
This commit is contained in:
parent
3f20d67fd7
commit
463d5b9a69
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user