mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-11-23 11:06:14 +01:00
Use config-file names for classes in messages.
This commit is contained in:
parent
692d7f52dc
commit
fbe80d7ee6
@ -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
|
||||
|
@ -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));
|
||||
}
|
||||
|
@ -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));
|
||||
}
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user