Return class name slugs in MobArenaHandler.

This commit is contained in:
Andreas Troelsen 2020-11-01 16:56:29 +01:00
parent 31282014b3
commit 7288fc566b
2 changed files with 2 additions and 1 deletions

View File

@ -37,6 +37,7 @@ These changes will (most likely) be included in the next version.
- Guardians and elder guardians no longer instantly retarget players when they break line of sight. This should make their behavior work a bit closer to vanilla.
- Items in class chests are now cloned before they are made unbreakable and given to players. This fixes an issue where setting `unbreakable-weapons: false` had no effect on the items. Note that any affected items in existing class chests will need to be replaced.
- The MagicSpells integration has been removed. This means that the extra `magicspells.yml` config-file (if it exists) no longer does anything and can be removed.
- (API) MobArenaHandler now returns class name slugs in the `getPlayerClass()` methods.
## [0.104.2] - 2020-01-03
- The region overlap check now works across both arena and lobby regions, i.e. all four combinations of intersections between two regions (arena-arena, arena-lobby, lobby-arena, and lobby-lobby) are evaluated.

View File

@ -159,7 +159,7 @@ public class MobArenaHandler
ArenaClass ac = ap.getArenaClass();
if (ac == null) return null;
return ac.getLowercaseName();
return ac.getSlug();
}
/**