Use config-file names for classes in messages.

This commit is contained in:
Andreas Troelsen 2017-02-18 03:34:28 +01:00
parent 692d7f52dc
commit fbe80d7ee6
4 changed files with 4 additions and 4 deletions

View File

@ -1247,7 +1247,7 @@ public class ArenaImpl implements Arena
}
assignClass(p, className);
Messenger.tell(p, Msg.LOBBY_CLASS_PICKED, TextUtils.camelCase(className));
Messenger.tell(p, Msg.LOBBY_CLASS_PICKED, this.classes.get(className).getConfigName());
}
@Override

View File

@ -1073,7 +1073,7 @@ public class ArenaListener
// Otherwise just fall through and use the items from the config-file
}
arena.assignClass(p, className);
Messenger.tell(p, Msg.LOBBY_CLASS_PICKED, TextUtils.camelCase(className));
Messenger.tell(p, Msg.LOBBY_CLASS_PICKED, arena.getClasses().get(className).getConfigName());
if (price > 0D) {
Messenger.tell(p, Msg.LOBBY_CLASS_PRICE, plugin.economyFormat(price));
}

View File

@ -96,7 +96,7 @@ public class PickClassCommand implements Command
// No linked chest? Fall through to config-file
}
arena.assignClass(p, lowercase);
Messenger.tell(p, Msg.LOBBY_CLASS_PICKED, TextUtils.camelCase(lowercase));
Messenger.tell(p, Msg.LOBBY_CLASS_PICKED, arena.getClasses().get(lowercase).getConfigName());
if (price > 0D) {
Messenger.tell(p, Msg.LOBBY_CLASS_PRICE, am.getPlugin().economyFormat(price));
}

View File

@ -97,7 +97,7 @@ public class ClassChests {
contents = newContents;
}
arena.assignClassGiveInv(player, classname, contents);
Messenger.tell(player, Msg.LOBBY_CLASS_PICKED, TextUtils.camelCase(classname));
Messenger.tell(player, Msg.LOBBY_CLASS_PICKED, arena.getClasses().get(classname).getConfigName());
double price = ac.getPrice();
if (price > 0D) {