of trades.
* Made updateTrades slightly more generic by retrieving the merchant
from the open inventory.
* The trading UI handler also retrieves the open merchant from the
player's open inventory now instead of manually keeping track of it.
* Changed the visibility of UIHandler#isWindow to protected and added
UIHandler#isOpen.
Other changes:
* Changed a few button messages for consistency.
* Changed the default value for the setting
enable-chest-option-on-player-shop to 'true'.
This issue was present before already, but only occurred if the
WorldGuard integration was enabled in the config. The recent changes
(registering of the 'allow-shop' flag) caused this issue to always be
triggered.
You will have to update WorldGuard for the WorldGuard integration to
work.
Other related changes:
* The 'allow-shop' flag got removed from WorldGuard itself and left for
other plugins to register it themselves. Shopkeepers will now attempt to
register this flag, if no other plugins has registered it yet (one such
other plugin is for example ChestShop). Since WorldGuard only allows
registering flags before it got enabled, but we are loading the config
at a later point, we will always attempt to register the flag, even if
the WorldGuard integration is disabled in the config.
* Removed: We no longer check for the alternative 'enable-shop' flag, if
the 'allow-shop' flag is not present.
hiring of wandering traders.
Other changes:
* When spawning of villagers or wandering traders is disabled, villagers
and wandering traders spawned by other plugins, spawn eggs, mob spawners
or due to curing zombie villagers are still allowed to spawn now.
* Added a separate setting 'disable-zombie-villager-curing' (default:
false) that can be used to prevent curing of zombie villagers.
* Added a message for the player when zombie villager curing is
disabled.
* Internal: Spigot is no longer calling creature spawn events for
entities that get spawned as part of chunk generation. If spawning of
regular villagers or wandering traders is disabled, these get removed
during the corresponding chunk load event now.
* Chested horse (Donkey, Llama, Mule, TraderLlama): Carrying chest
state.
* Horse: Color, style and armor.
* Llama: Color and carpet color.
Fixed: Growing up mobs are moved by minecraft. They get instantly teleported back now.
* Fox: Type, crouching, sleeping state.
* Wolf: Collar color (, angry state isn't working yet)
* Parrot: Color, sitting (, baby variant isn't working for parrots)
Moved common de/serialization code into new Property classes.
* Sheep can now be set sheared.
* Cat collar color can be specified now.
* Villager type (biome) and level can be specified. TODO This currently
requires a fix in Spigot for the SNOW/Y type to work.
* Fixed: Wandering trader doesn't support the baby state.
* Removed the generic 'sub type' editor option in favour of letting each
shop object supply a list of editor options. This allows living
shopkeepers to provide multiple editor options now.
* API: Removed getSubTypeItem, cycleSubType and equipItem from
ShopObject. Editor options are internal API for now, and mob equipment
hasn't properly worked already before due to not getting persisted.
* All ageable mobs can now be turned into baby variants. Previously this
options was only available for zombie and pig zombie shopkeepers. The
editor item for this option is a regular chicken egg now.
* Villagers store their profession under 'profession' now. Previous
values under 'prof' get imported.