forked from Upstream/mmocore
Fixed class exp sources
This commit is contained in:
parent
ce17a1f577
commit
1ea785e4bb
@ -154,8 +154,8 @@ public class PlayerClass extends PostLoadObject implements ExperienceObject {
|
|||||||
"Could not load option '" + key + "' from class '" + key + "': " + exception.getMessage());
|
"Could not load option '" + key + "' from class '" + key + "': " + exception.getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config.contains("main-exp-sources.yml")) {
|
if (config.contains("main-exp-sources")) {
|
||||||
for (String key : config.getStringList("main-exp-sources.yml"))
|
for (String key : config.getStringList("main-exp-sources"))
|
||||||
try {
|
try {
|
||||||
MMOCore.plugin.experience.registerSource(MMOCore.plugin.loadManager.loadExperienceSource(new MMOLineConfig(key), this));
|
MMOCore.plugin.experience.registerSource(MMOCore.plugin.loadManager.loadExperienceSource(new MMOLineConfig(key), this));
|
||||||
} catch (IllegalArgumentException exception) {
|
} catch (IllegalArgumentException exception) {
|
||||||
|
Loading…
Reference in New Issue
Block a user