diff --git a/changelog.md b/changelog.md index fe25ae9..f66574b 100644 --- a/changelog.md +++ b/changelog.md @@ -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. diff --git a/src/main/java/com/garbagemule/MobArena/MobArenaHandler.java b/src/main/java/com/garbagemule/MobArena/MobArenaHandler.java index 74546f2..343fce2 100644 --- a/src/main/java/com/garbagemule/MobArena/MobArenaHandler.java +++ b/src/main/java/com/garbagemule/MobArena/MobArenaHandler.java @@ -159,7 +159,7 @@ public class MobArenaHandler ArenaClass ac = ap.getArenaClass(); if (ac == null) return null; - return ac.getLowercaseName(); + return ac.getSlug(); } /**