Skip to content

Fix xp dupe, excess chest, other features

Compare
Choose a tag to compare
@Trophonix Trophonix released this 16 May 22:23
· 80 commits to master since this release
  • 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.