Releases: Trophonix/TradePlus
Fix xp dupe, excess chest, other features
-
Experience duplication is no longer possible as I have disabled the 'levelMode' option in the config. The way Minecraft's code works with levels and xp is hard to manage and I can't get it to work. I may revisit this later.
-
Negative extra amounts can't be entered into chat / anvil now.
-
Blocked items can't be shift-clicked into the trade inventory now.
-
%EXTRA% can be used in the extras.type category in your config file to show the name of the extra being traded, i.e. experience / money / grief prevention points. Each extra's name can be modified at their respective config sections.
Excess Chest
Ever had your items fall because you didn't have any inventory space? Now, you don't need to worry about it, as you'll have a handy chest open up at the end of the trade with extra items which couldn't fit!
The player can re-organize their inventory and take the items, then close the inventory and let the remainder fall to the ground. This new feature can be disabled with the config option "excess-chest.enabled" set to false. You can also change the title of excess chest.
Worldguard Flag
Now, you can set the "trading" flag to true or false to control trading in regions of your world using WorldGuard.
For example, if you only want trading allowed in spawn, you can first set trading to false in the global region which encompasses the entire world outside other defined regions. Then, set trading to true in your region!
If you have WorldGuard on your server, you should see the trading flag available in the /region flag command. By default, it's set to true in all regions.
Fixes
There was an error displaying the extra's internal ids (economy instead of money, for example). This is fixed now.
Trade+ 3.66
custom model data
Trade+ 3.61 - Update to 1.15
Brings github releases up to date with spigot releases and tested with 1.15
Trade+ 3.58 - Fix 1.7.10 support and weird teleporting during chat entering
I made the code check if the server is 1.7.10 and if it is, avoids certain API features that aren't available to the most outdated versions. Should fix 1.7.10 support.
Also made it smoother to keep player from moving during trade
Disable anvil, fix errors
Disabled anvil input because it's too much of a pain to make work, especially across versions. Chat will now be used if you had it set to anvil.
Also fixed an error related to chat input and fixed a math issue in the chat input code.
Fixes and updates
Added:
- Few extra checks to keep the anvil gui or anything else from opening the trade menu after the trade has ended
- XP levels option at extras.experience.levelMode (set to true to use levels instead of XP)
Fixed:
- Inconsistent behavior with the anvil gui in early versions, switched back to another library for the GUI which is a lot better.
- Occasional XP error during trade end
- /trade command logic
- Maximum distance message displays wrong number
- XP math issues
- Anvil GUI library updates
- Material issues in 1.7.10
- Other small things I found while testing
Fix anvil maximum message and 1.8 compatibility with anvil gui
- Fix %BALANCE% displaying in the anvil maximum balance message.
- Remove AnvilPrepareEvent listener (fixes 1.8 compatibility)
Async loading, anvil input
Anvil input is back!
The "mode" option for extras now support three choices:
- "anvil"
- "chat"
- "increment"
Also made the plugin load the configuration files async as well as loading new trades async for server performance.
Same IP address check, factions support, exploit patch
3.46
Added two new config options:
- allow-same-ip-trade Defines whether to allow trading between two players on the same IP address. Also added errors.same-ip to lang.yml to correspond with this
- hooks.factions.allow-trades-in-enemy-territory Whether to allow trading in enemy faction territory. Denial message is at hooks.factions.enemy-territory
Fixed:
- Trade logs not being saved
3.47
I patched an exploit with the new input method and fixed the logging error.
Also removed a debug message that was left in during testing for a previous update (Sorry)
Chat input for extras
Hello everyone! I was notified of an issue with the recently added anvil gui input. Players were being charged the XP cost listed on the GUI.
Since I was using someone else's library for the anvil gui, I can't just fix the problem. I would need to dive in and figure out how it works before I can fix it which would kind of defeat the purpose of using someone else's, or just create my own.
So, since this is an issue that can't just be put on hold, for now I have replaced the anvil gui with chat input.