mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-11-26 04:25:21 +01:00
Call pet spawning logic in Upgrade Waves.
Due to the package structure and location of MASpawnThread, SpawnsPets doesn't need to be opened up for this to work. This change opens up for quite a few different upgrade strategies, since pet items obtained outside of Upgrade Waves are transformed as well. It is technically a breaking change, because it breaks the invariant that "after arena start, no items are transformed to pets". However, since pet items are customizable, it is possible to just change the `bone` to `sponge` in the config-file if bones carry some sort of implicit meaning in an existing setup. Closes #524
This commit is contained in:
parent
dfeab96f22
commit
fb13eac16f
@ -15,6 +15,7 @@ These changes will (most likely) be included in the next version.
|
||||
- MobArena now has basic tab completion support for most of the commands that take arguments.
|
||||
- The `pet-items` node in `global-settings` now supports any living entity as a pet - even zombies! Pets will aggro hostile mobs that damage their owner, but only tameable pets (wolves, cats, etc.) will properly follow their owners around. This should also allow 1.14 servers to replace `ocelot` with `cat` in their `pet-items` node to get cat pets working again.
|
||||
- Pets now have custom names that denote who their owner is, e.g. "garbagemule's pet".
|
||||
- Pet items can now be used in Upgrade Waves. When an Upgrade Wave spawns, all pet items are transformed to pets just like when the arena session starts. Note that while only Upgrade Waves trigger this behavior, pet items obtained elsewhere (e.g. from Supply Wave drops) will also be transformed on subsequent Upgrade Waves.
|
||||
- Potion effects can now be used as upgrades in Upgrade Waves. Check the wiki for details.
|
||||
- Tridents and crossbows are now considered weapons with regards to the `unbreakable-weapons` flag. All class items that have durability now have their unbreakable flag set to true unless the `unbreakable-weapons` and/or `unbreakable-armor` flags are set to `false`.
|
||||
- Leaderboards now work again on servers running Minecraft 1.14+.
|
||||
|
@ -286,6 +286,8 @@ public class MASpawnThread implements Runnable
|
||||
uw.grantItems(p, className);
|
||||
uw.grantItems(p, "all");
|
||||
}
|
||||
|
||||
plugin.getArenaMaster().getSpawnsPets().spawn(arena);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user