-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Added Offer at Price plugin #9898
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
New plugin |
|
This plugin requires a review from a Plugin Hub maintainer. The reviewer will request any additional changes if needed. Internal use only: Reviewer details Maintainer details |
|
|
|
Thanks for the feedback! I understand if you'd prefer not to include the plugin in it's current state. You've probably considered these points but I figured I'd share some of my thinking around this:
Anyway, that's my 2 cents on the matter. I appreciate your suggestion, but I think the plugin would end up being little more useful than just using a calculator at that point and I'd probably want to approach it quite differently given that restriction. In any case, even if you still think the plugin is inappropriate thanks for taking the time to consider it. |
|
dynamic register/unregister can get kind of flaky and makes you liable to leak registrations which can cause client stability issues. typically you should always statically add/remove on startup/shutdown and then just defer to a bool flag or something to know when a listener should do work |
…iders existing offer, warnings for mismatched trades
|
Ah good to know. I've replaced the dynamic register/unregister calls with setting a bool. I also included a few changes to the plugin behaviour to better match offers and to notify the player if the plugin is unable to match a trade at the entered price. |
This plugin gives players the option to match offered items in a player trade with coins (or vice versa) by entering a price per item rather than a quantity.
To use this, players must shift-right click the item they intend to give and select the "Offer price X " option. Visually, this replaces the "Offer-X" option (only for shift clicks) since it actually just renames and adds functionality to this existing option.
The option is only available if the other player has submitted their offer and that offer has only a single type of item. The plugin currently only supports trades involving currency for items.