added string method

This commit is contained in:
Indyuce 2019-08-31 20:10:13 +02:00
parent ac12374634
commit 2e42fc327e

View File

@ -55,7 +55,11 @@ public class Professions {
}
public int getExperience(Profession profession) {
return exp.containsKey(profession.getId()) ? exp.get(profession.getId()) : 0;
return getExperience(profession.getId());
}
public int getExperience(String id) {
return exp.containsKey(id) ? exp.get(id) : 0;
}
public void setExperience(Profession profession, int value) {