-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
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
| if (inv.getTitle().contains(QuestChatManager.translateColor(I18n.locMsg("QuestReward.RewardTitle")))) { |
Metadata
Metadata
Assignees
Labels
No labels