Commit Graph

1054 Commits (5437c5d45725cd1850b180fca97c2f9363d3e4ee)

Author SHA1 Message Date
blablubbabc 6e704f606f Minor internal changes related to UI handlers and the dynamic updating
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.
2019-06-21 04:39:09 +02:00
blablubbabc d6896aaf6c Updated changelog. 2019-06-17 16:16:00 +02:00
blablubbabc 7a1e5dd3e2 Updated bstats to 1.5 2019-06-17 16:14:38 +02:00
blablubbabc f14313970b Updated changelog. 2019-06-11 00:20:03 +02:00
blablubbabc a62735fc60 Speed up metrics by avoiding iterating the shopkeeper chunks. 2019-06-10 23:29:54 +02:00
blablubbabc a701d15bc9 Speedup world save handling by only iterating the chunks with
shopkeepers (instead of all loaded chunks).

Resolves #571
2019-06-10 22:25:46 +02:00
blablubbabc d6008077b7 Added debug messages for mob spawn blocking and zombie villager curing. 2019-05-31 02:10:05 +02:00
blablubbabc 8b66586c41 Updated TODO. 2019-05-30 20:42:54 +02:00
blablubbabc 2e84350016 Prepared working on next version. 2019-05-30 20:42:08 +02:00
blablubbabc 8384138b3a Version 2.7.1 2019-05-30 20:41:25 +02:00
blablubbabc 1d38081c9d Fix: Shopkeeper mobs sensing cache is never cleared, resulting in them
not looking towards nearby players sometimes.

Fixes #569
2019-05-30 20:41:01 +02:00
blablubbabc 075a5371c3 WorldGuard/Edit leaks some implementation dependencies which are missing
from our and their repositories.
2019-05-29 11:58:51 +02:00
blablubbabc c024f3c453 Update project and nexus URLs. 2019-05-29 11:07:15 +02:00
blablubbabc 0c2bddbada Changelog fixes. 2019-05-29 01:38:12 +02:00
blablubbabc 440c3a3ff7 Prepared working on the next version. 2019-05-29 00:32:41 +02:00
blablubbabc 76b9325b75 Version 2.7.0 2019-05-29 00:14:29 +02:00
blablubbabc 3665fddc7d Fix: Sign shops no longer temporarily load the chunk when checking if
they are active.
2019-05-28 22:20:24 +02:00
blablubbabc f3e9e1f681 Added the ability to cycle the editor options back and forth via left
and right clicking.
2019-05-28 21:52:16 +02:00
blablubbabc 72a9ac5f14 Internal: Renamed MushroomCowShop -> MooshroomShop. 2019-05-28 21:31:38 +02:00
blablubbabc 9ea37268bc Added various new messages for the different shop object editor options.
Other changes:
* Changed a few button messages for consistency.
* Changed the default value for the setting
enable-chest-option-on-player-shop to 'true'.
2019-05-28 21:12:11 +02:00
blablubbabc 2a52a612ad Bumped bukkit dependency to 1.14.2 2019-05-28 18:43:14 +02:00
blablubbabc d94e841a68 Updated nexus server. 2019-05-27 18:59:53 +02:00
blablubbabc eecb011b2a Zombie villager conversion player API is available now. 2019-05-18 18:19:43 +02:00
blablubbabc 6f8d572ba1 Fixed a class loading issue in case WorldGuard is not present.
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.
2019-05-18 17:58:03 +02:00
blablubbabc dc5ecd3c5d Bumped Bukkit dependency to version 1.14.1. 2019-05-17 16:39:06 +02:00
blablubbabc 2710c11699 Removed unused import. 2019-05-17 16:25:46 +02:00
blablubbabc 381e4d0227 Updated for the latest WorldGuard changes.
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.
2019-05-17 16:25:06 +02:00
blablubbabc 8fcc90cb1b Added separate settings for disabling trading, spawning and allowing
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.
2019-05-17 15:25:02 +02:00
blablubbabc a1d08d2a7d Angry state options for wolves should work now on the latest spigot
version.
2019-05-11 16:49:01 +02:00
blablubbabc 4278e51301 More mob options:
* All zombie variants (zombie, husk, drowned, pig zombie, zombie
villager): Baby state. Removed the special pig zombie type.
* Zombie villager: Professions.
2019-05-09 19:51:34 +02:00
blablubbabc 8cc4243aa3 More entity options.
* Panda: Genes (appearance).
* MushroomCow: Variant.
* Pig: Saddled.
2019-05-09 18:34:58 +02:00
blablubbabc bc4a4e7159 Fix: Clearing entity equipment.
Some entities (eg. fox) will randomly spawn with equipment.
2019-05-09 15:32:13 +02:00
blablubbabc a8348b275e Update sleeping/crouching button icons if there is a conflict. 2019-05-09 15:31:57 +02:00
blablubbabc ccf390e139 Version 2.7.0-SNAPSHOT 2019-05-09 00:53:47 +02:00
blablubbabc 001681b94a Updated TODO with more mob options. 2019-05-09 00:40:50 +02:00
blablubbabc d294aa2293 Enabled various mobs by default now, which previously had some issues
but seem to work fine now: Horse, mule, donkey, skeleton horse, zombie
horse, llama.
2019-05-09 00:24:49 +02:00
blablubbabc e87634ac37 Added more mob editor options:
* 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.
2019-05-09 00:11:10 +02:00
blablubbabc ee4fbe1514 Added new mob attribute options:
* 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.
2019-05-08 18:27:11 +02:00
blablubbabc af13aaf6d8 Added new mob attribute editor options.
* 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.
2019-05-07 16:08:41 +02:00
blablubbabc eaf2b44665 Fix last commit: Default empty editor buttons is not modifiable. 2019-05-06 19:50:03 +02:00
blablubbabc 0c2ab30a2f Shop objects can provide a list of editor options now.
* 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.
2019-05-06 17:38:12 +02:00
blablubbabc 73b7ef8114 Updated changelog. 2019-04-27 01:59:01 +02:00
blablubbabc 4f76d3e7bf Removed unused item names again for now. 2019-04-25 23:44:33 +02:00
blablubbabc e7d6c7e9a8 Fixed minor internal inconsistency: The merchant inventory on the server
gets updated as well now when updating the trades for the trading
player.
2019-04-25 23:30:02 +02:00
blablubbabc 94e893f274 Update TODO. 2019-04-25 21:43:22 +02:00
blablubbabc 98ec24a3ab Adding the new 1.14 mobs to the by-default enabled mobs. 2019-04-25 21:42:27 +02:00
blablubbabc efc01b70b7 Some color changes for cats. 2019-04-25 21:41:35 +02:00
blablubbabc 0bb5006dc1 Bumped dependencies to Spigot version 1.14. 2019-04-25 21:40:54 +02:00
blablubbabc 2f69858cf1 Made shop and object type matching more strict.
This now uses a fixed list of aliases.
2019-04-25 21:00:07 +02:00
blablubbabc 828aa43602 Follow up: CraftBukkit should be removing the damage tag more
consistently now.
2019-04-25 03:19:14 +02:00