-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
RPGHorses/RPGHorsesPlugin/src/main/java/org/plugins/rpghorses/listeners/InventoryClickListener.java
Line 402 in 45d5674
| } else if (horseOwner.getCurrentHorse() != null && e.getView().getTitle().equals(horseOwner.getCurrentHorse().getHorse().getName()) && e.getView().getTopInventory() == e.getClickedInventory() && e.getSlot() == 0) { |
Checking event.getView().getTitle() to see whether your custom inventory is being used is unsafe, as renaming a chest in an anvil allows users to set their own inventory titles. The correct way to check if your custom inventory is involved with an event is by using custom holders, see here: https://docs.papermc.io/paper/dev/custom-inventory-holder
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels