v0.94.4.70 - Fix "random" class sign not working

This commit is contained in:
Brian 2012-06-06 20:27:23 -04:00
parent 906fe93d6a
commit b783f8ecbb
3 changed files with 8 additions and 6 deletions

View File

@ -1,7 +1,7 @@
name: MobArena
author: garbagemule
main: com.garbagemule.MobArena.MobArena
version: 0.94.4.69
version: 0.94.4.70
softdepend: [Spout,MultiVerse,XcraftGate,Towny,Heroes,MagicSpells,Vault]
commands:
ma:

View File

@ -998,7 +998,7 @@ public class ArenaImpl implements Arena
}
assignClass(p, className);
Messenger.tellPlayer(p, Msg.LOBBY_CLASS_PICKED, className);
Messenger.tellPlayer(p, Msg.LOBBY_CLASS_PICKED, TextUtils.camelCase(className), getClassLogo(className));
}
@Override

View File

@ -815,12 +815,14 @@ public class ArenaListener
private void delayAssignClass(final Player p, final String className) {
plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin,new Runnable() {
public void run() {
arena.assignClass(p, className);
if (!className.equalsIgnoreCase("random"))
if (!className.equalsIgnoreCase("random")) {
arena.assignClass(p, className);
Messenger.tellPlayer(p, Msg.LOBBY_CLASS_PICKED, TextUtils.camelCase(className), arena.getClassLogo(className));
else
}
else {
arena.assignRandomClass(p);
Messenger.tellPlayer(p, Msg.LOBBY_CLASS_RANDOM);
}
}
});
}