Experience trading has been on my To-Do list for over a year, and it's finally here! Now, Players can trade XP just like items using the Trading UI. Additionally, the UI now provides options to reload settings and languages from within the game without needing to restart the server. Missing entries in existing language files are set to their English counterpart.
Furthermore, this release addresses several issues and small bugs with the Language / UI system, so even if you're not planning on using the XP Trading, it is still recommended to upgrade. The XP Trading can be disabled in the configuration at any time.
As always, reporting bugs and issues is very cool so you should do it!
Key notes
- The plugin now comes with an option in the config to enable/disable XP trading. Default value is true.
- Click the Exp Bottle to change traded XP, and again to lock it in. The trade cannot be confirmed until the XP has been confirmed.
- If the XP changes to below the set limit during the countdown, the trade countdown is canceled
- The book in the center column provides an overview of traded XP, when the book is enchanted, there has been a change. To "unmark" the book, simply leftclick on it.
Permission Overview
New permissions:
- trading.admin.reloadsettings - Reload the settings and display reload items.
- => This permission is automatically granted if the player is an operator, or has one of the following permissions:
- *
- trading.*
- trading.admin.*
Other Changes
- The Language Inventory and the Settings inventory now have a refresh item. Refreshing languages cancels all current trades because the inventory titles could change, and then the plugin would no longer detect the trade inventory as such.
- The language files for English and German have been updated.
- The permission system now works a bit differently:
- The .* hierarchy extends all the way down, when a Player has perm.* as permission, they also have perm.test1.*, perm.test2, perm.test1.reload, etc.
- Players with OP have all permissions.
- Added Configuration Values for Auto-Accept cooldown and trade request duration. If a Player who has Auto-Accept enabled receives a trade request in between cooldowns, it's treated like a normal request in chat to prevent spamming trades.
- The Time values have minimums, if the value is set to something below that minimum, the value is instead set to the minimum. If this happens, a warning is printed to the console on startup. The minimum values are 100 milliseconds for the Auto-Accept cooldown and 2 seconds (2000 ms) for the trade expiration. Although values this low are obviously not recommended, this is the lowest the plugin will go.
Patch Notes
- Languages now receive English default values instead of simply unknown when an entry is missing. This allows the Administrators to see what the message should be for ease of translation, and the players still know what it's supposed to say, provided they can understand English.
- Fixed some major and minor bugs with the UI
- Fixed issues where the UI would be unresponsive or could be modified when using languages other than English.
- Fixed reload issues where the UI would be unresponsive or could be modified when the language was altered and the server was restarted while the inventory was loading.
- Fixed the wrong message being sent when accepting trades.
- Resolved Parsing Errors when reading language files, these values will now be assigned a set default value when an error occurs while parsing. When this happens, a warning is sent to the console during startup.