diff --git a/src/main/java/pw/yumc/YumCore/config/InjectConfig.java b/src/main/java/pw/yumc/YumCore/config/InjectConfig.java index d88fb2c..932cb75 100644 --- a/src/main/java/pw/yumc/YumCore/config/InjectConfig.java +++ b/src/main/java/pw/yumc/YumCore/config/InjectConfig.java @@ -4,7 +4,6 @@ import java.lang.reflect.Field; import java.util.logging.Level; import pw.yumc.YumCore.bukkit.Log; -import pw.yumc.YumCore.bukkit.P; /** * 配置自动载入类 @@ -16,12 +15,12 @@ public abstract class InjectConfig extends AbstractInjectConfig { protected FileConfig config; public InjectConfig() { - config = new FileConfig(P.instance); + config = new FileConfig(); inject(); } public InjectConfig(final String name) { - config = new FileConfig(P.instance, name); + config = new FileConfig(name); inject(); } diff --git a/src/main/java/pw/yumc/YumCore/config/PlayerConfig.java b/src/main/java/pw/yumc/YumCore/config/PlayerConfig.java index 1049601..3697ccd 100644 --- a/src/main/java/pw/yumc/YumCore/config/PlayerConfig.java +++ b/src/main/java/pw/yumc/YumCore/config/PlayerConfig.java @@ -33,7 +33,7 @@ public class PlayerConfig extends FileConfig { * 玩家名称 */ public PlayerConfig(final Plugin plugin, final Player playername) { - super(plugin, new File(plugin.getDataFolder(), CONFIG_FOLDER + File.separatorChar + playername.getName())); + super(new File(plugin.getDataFolder(), CONFIG_FOLDER + File.separatorChar + playername.getName())); } /** @@ -45,7 +45,7 @@ public class PlayerConfig extends FileConfig { * 玩家 */ public PlayerConfig(final Plugin plugin, final String player) { - super(plugin, new File(plugin.getDataFolder(), CONFIG_FOLDER + File.separatorChar + player)); + super(new File(plugin.getDataFolder(), CONFIG_FOLDER + File.separatorChar + player)); } /**