Make pet names per-class configurable.
Adds a new optional `pet-name` property to arena class configurations that lets server owners set a custom pet name template instead of the hardcoded "<player>'s pet". This allows for translation and color coding. To accommodate setups where the player's "display name" isn't a good fit, e.g. because it is too long, the more generic "player name" is available for use instead. Closes #595 Co-authored-by: Bobcat00 <[email protected]> Co-authored-by: Andreas Troelsen <[email protected]>
This commit is contained in:
co-authored by
Bobcat00
Andreas Troelsen
parent
a21f47e193
commit
6be130daf1
@@ -13,6 +13,7 @@ These changes will (most likely) be included in the next version.
|
||||
## [Unreleased]
|
||||
### Added
|
||||
- New monster variant `angry-bees` can be used to spawn angry bees.
|
||||
- Pet names are now per-class configurable via the optional `pet-name` property, which defaults to `<display-name>'s pet` (the `<player-name>` variable is also supported).
|
||||
- (API) MobArena's internal command handler now supports registering pre-instantiated subcommand instances. This should make it easier for extensions to avoid the Singleton anti-pattern for command dependencies.
|
||||
- (API) MobArena now fires MobArenaPreReloadEvent and MobArenaReloadEvent before and after, respectively, reloading its config-file. This should allow extensions and other plugins to better respond to configuration changes.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user