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

@ -14,7 +14,8 @@ Version 1.3.10-dev
+ Added 50% & 150% XP boost perks
= Fixed players never being removed from memory (memory leak)
= Fixed admin chat being seen by everyone
= Fixed issue with UTFDataFormatException occurring on occasion when trying to load Chunklets
= Fixed issue with UTFDataFormatException occurring on occasion when trying to load Chunklets
= Fixed ArrayIndexOutOfBounds error caused when trying to use /xplock after logging in but before gaining XP
Version 1.3.09
+ Added compatibility with AntiCheat (Which I highly recommend to prevent cheating)

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])) {