Allow multi-word names in /ma addarena and /ma autogenerate.

Introduces support for multi-word arena names in the two commands. The
approach is to simply join the arguments by spaces. Because of the new
slug-based lookups, multi-word names are fairly straightforward.
This commit is contained in:
Andreas Troelsen
2020-11-03 19:58:30 +01:00
parent 0f93d8ac05
commit 06cedde031
3 changed files with 18 additions and 8 deletions
+1
View File
@@ -26,6 +26,7 @@ These changes will (most likely) be included in the next version.
- Permissions for arenas and classes are now based on "slugs". It is now possible to configure permissions for arenas and classes with multi-word names (including "My Items"). Check the Permissions page on the wiki for details.
- Commands that resolve arena and/or class names now consistently resolve and tab complete "slugs" instead of arbitrarily "squashed" names. This greatly improves support for multi-word names.
- The class signs generated by the `/ma autogenerate` command now use class names from the config-file instead of arbitrarily "squashed" names.
- The `/ma addarena` and `/ma autogenerate` commands now supports multi-word arena names.
- Leaderboards now use arena names from the config-file instead of arbitrarily "prettified" names.
- Using `spectate-on-death: true` no longer forces players out to their join location/exit warp before moving them to the spectator area. This should prevent "jumpy" behavior in multi-world setups.
- Players should now properly respawn at the spectator area rather than at world spawn on servers with plugins that override respawn locations.