Skip to content
Success

Changes

Summary

  1. Add dTrade object and related tags, mechanisms, and command (#1892) (commit: e42972a) (details)
Commit e42972ab59376b1b3b0d760e4ebb48c3e774de82 by mcmonkey4eva
Add dTrade object and related tags, mechanisms, and command (#1892)
* Add dTrade object and all dTrade-relevant tags/mechanisms

* Add opentrades command

* Remove pointless copy-pasted line

* Prevent versions below 1.12.2 from accessing dTrade features

* Remove pointless version check code

* Remove almost-forgotten unneeded imports

* Meta fixes and EOF newlines

* Fix code and update to latest Denizen core commits

* Remove unneeded lines

* Just don't allow the selected_trade tag to be used at all
The inventory casted to a MerchantInventory doesn't return a null, but
apparently the MerchantInventory#getSelectedRecipe() method likes to die
so hard that Denizen consistently throws a NullPointerException error
stacktrace. So I'm just not going to let people access that, ever.

* Don't let inputs default to two air items

* Let's not be stupid when seeing if an entity is a Merchant
(commit: e42972a)
The file was addedplugin/src/main/java/net/aufdemrand/denizen/objects/properties/trade/TradeUses.java
The file was addedplugin/src/main/java/net/aufdemrand/denizen/objects/properties/trade/TradeMaxUses.java
The file was modifiedplugin/src/main/java/net/aufdemrand/denizen/scripts/commands/BukkitCommandRegistry.java (diff)
The file was modifiedplugin/src/main/java/net/aufdemrand/denizen/objects/dEntity.java (diff)
The file was modifiedplugin/src/main/java/net/aufdemrand/denizen/Denizen.java (diff)
The file was addedplugin/src/main/java/net/aufdemrand/denizen/objects/properties/trade/TradeResult.java
The file was addedplugin/src/main/java/net/aufdemrand/denizen/objects/properties/trade/TradeHasXp.java
The file was addedplugin/src/main/java/net/aufdemrand/denizen/scripts/commands/player/OpenTradesCommand.java
The file was addedplugin/src/main/java/net/aufdemrand/denizen/objects/properties/trade/TradeInputs.java
The file was modifiedplugin/src/main/java/net/aufdemrand/denizen/objects/dPlayer.java (diff)
The file was addedplugin/src/main/java/net/aufdemrand/denizen/objects/dTrade.java
The file was addedplugin/src/main/java/net/aufdemrand/denizen/objects/properties/entity/EntityTrades.java