erikzimmermann / TradeSystem

A highly customizable, free and open-source Minecraft plugin for trading between players.
https://www.spigotmc.org/resources/trade-system-custom-layouts.58434/
MIT License
82 stars 48 forks source link

[API FEATURE] TradeFinishEvent #435

Closed Kr1S-D closed 1 year ago

Kr1S-D commented 1 year ago

Is your feature request related to a problem? Please describe. I'm creating a trade logging plugin (made with inventories), which allows my admins to monitor trades between players, however right now there is no real way to monitor a trade at the end, in fact i tried to do something with the InventoryCloseEvent but its not fully working so i ask you if i could add inside the API a TradeFinishEvent event

Describe the solution you'd like The solution would be to create a TradeFinishEvent, which is called every time the trade gui is closed even if the player doesn't complete the trade, this event gives:

This way I am able to correctly register trades via your API and not with cross methods created by me, if you contact me on discord I can send you the class I currently use to control trades or a possible class prototype for the event (Kr1S_D#9834)

Discord contact: Kr1S_D#9834