mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-11-23 00:05:52 +01:00
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());
|
||||
}
|
||||
|
||||
if (config.contains("main-exp-sources.yml")) {
|
||||
for (String key : config.getStringList("main-exp-sources.yml"))
|
||||
if (config.contains("main-exp-sources")) {
|
||||
for (String key : config.getStringList("main-exp-sources"))
|
||||
try {
|
||||
MMOCore.plugin.experience.registerSource(MMOCore.plugin.loadManager.loadExperienceSource(new MMOLineConfig(key), this));
|
||||
} catch (IllegalArgumentException exception) {
|
||||
|
Loading…
Reference in New Issue
Block a user