Skip to content

NPCShopTradeScriptEvent#2839

Open
MC-Samuel wants to merge 2 commits into
DenizenScript:devfrom
MC-Samuel:feature/npc_trade_event
Open

NPCShopTradeScriptEvent#2839
MC-Samuel wants to merge 2 commits into
DenizenScript:devfrom
MC-Samuel:feature/npc_trade_event

Conversation

@MC-Samuel

Copy link
Copy Markdown
Contributor

Citizens added their own event for when a player makes a trade in a Citizens shop menu.
The NPCShopTradeScriptEvent has been added to listen to this event, and provide information unique to Citizens trades that the PlayerTradesWithMerchantScriptEvent does not have/need.

With this, the PlayerTradesWithMerchantScriptEvent no longer fires when the entity is an npc. There are differences between what the Paper event the Citizens event can do (Citizens trades can be multiple things besides items, the Paper event is cancellable, etc), and this change was necessary to accommodate for them.

Requires Citizens build 4216 or higher.

Resolves https://discord.com/channels/315163488085475337/1325529413013606563

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant