Fixed /addlevels not working on offline players

Fixed /addlevels all throwing NPE because of Smelting
Removed use of Users.getProfile()
This commit is contained in:
bm01
2013-02-01 11:49:44 +01:00
parent ef775f1c24
commit 137864dc04
4 changed files with 47 additions and 34 deletions

View File

@ -144,6 +144,7 @@ public enum SkillType {
return Users.getProfile(player).getSkillLevel(this);
}
// TODO: This is a little "hacky", we probably need to add something to distinguish child skills in the enum, or to use another enum for them
public boolean isChildSkill() {
switch (this) {
case SMELTING: