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)
|
if (e.getCurrentItem() == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!e.getInventory().getName().endsWith("'s Inventory View"))
|
if (!e.getView().getTitle().endsWith("'s Inventory View"))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
e.setCancelled(true);
|
e.setCancelled(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user