Merge branch 'master' into 1.17

This commit is contained in:
gnembon committed 2020-12-14 02:37:48 -04:00
commit 50a0e4b886
4 files changed
+12 -11

No files matched your search

+1 -1
View File
@@ -4055,7 +4055,7 @@ Triggered when player right clicks (interacts) with an entity, even if the entit
the item they are holding. The event is invoked after receiving a packet from the client, before anything happens server side
with that interaction.
### `__on_player_trades(player, entity, buy, buyB, sell)`
### `__on_player_trades(player, entity, buy_left, buy_right, sell)`
Triggered when player trades with a merchant. The event is invoked after the server allow the trade, but before the inventory
changes and merchant updates its trade-uses counter.
The parameter `entity` can be `null` if the merchant is not an entity.
+1 -1
View File
@@ -116,7 +116,7 @@ Triggered when player right clicks (interacts) with an entity, even if the entit
the item they are holding. The event is invoked after receiving a packet from the client, before anything happens server side
with that interaction.
### `__on_player_trades(player, entity, buy, buyB, sell)`
### `__on_player_trades(player, entity, buy_left, buy_right, sell)`
Triggered when player trades with a merchant. The event is invoked after the server allow the trade, but before the inventory
changes and merchant updates its trade-uses counter.
The parameter `entity` can be `null` if the merchant is not an entity.