mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
Fix RankConfig not using the new updating config system
This commit is contained in:
parent
640f4b0a9b
commit
f40f68bdf0
@ -9,7 +9,7 @@ import java.util.ArrayList;
|
|||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class RankConfig extends AutoUpdateConfigLoader {
|
public class RankConfig extends BukkitConfig {
|
||||||
private static RankConfig instance;
|
private static RankConfig instance;
|
||||||
|
|
||||||
public RankConfig() {
|
public RankConfig() {
|
||||||
@ -66,7 +66,7 @@ public class RankConfig extends AutoUpdateConfigLoader {
|
|||||||
*/
|
*/
|
||||||
public int getSubSkillUnlockLevel(SubSkillType subSkillType, int rank, boolean retroMode) {
|
public int getSubSkillUnlockLevel(SubSkillType subSkillType, int rank, boolean retroMode) {
|
||||||
String key = getRankAddressKey(subSkillType, rank, retroMode);
|
String key = getRankAddressKey(subSkillType, rank, retroMode);
|
||||||
return config.getInt(key, getInternalConfig().getInt(key));
|
return config.getInt(key, defaultYamlConfig.getInt(key));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -128,7 +128,7 @@ public class RankConfig extends AutoUpdateConfigLoader {
|
|||||||
|
|
||||||
private void resetRankValue(@NotNull SubSkillType subSkillType, int rank, boolean retroMode) {
|
private void resetRankValue(@NotNull SubSkillType subSkillType, int rank, boolean retroMode) {
|
||||||
String key = getRankAddressKey(subSkillType, rank, retroMode);
|
String key = getRankAddressKey(subSkillType, rank, retroMode);
|
||||||
int defaultValue = getInternalConfig().getInt(key);
|
int defaultValue = defaultYamlConfig.getInt(key);
|
||||||
config.set(key, defaultValue);
|
config.set(key, defaultValue);
|
||||||
mcMMO.p.getLogger().info(key + " SET -> " + defaultValue);
|
mcMMO.p.getLogger().info(key + " SET -> " + defaultValue);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user