Fixed ArrayIndexOutOfBounds error

This commit is contained in:
GJ
2012-06-27 11:18:04 -04:00
parent 0e85b4776a
commit 71b20bdeaa
2 changed files with 6 additions and 1 deletions

View File

@ -52,6 +52,10 @@ public class XplockCommand implements CommandExecutor {
player.sendMessage(LocaleLoader.getString("Commands.xplock.locked", new Object[] { Misc.getCapitalized(lastGained.toString()) }));
return true;
}
else {
player.sendMessage(usage);
return true;
}
case 1:
if (Skills.isSkill(args[0])) {