From f2dbac8454ce5972ca29673c61b02aaf6e2903f3 Mon Sep 17 00:00:00 2001 From: 502647092 Date: Thu, 25 Aug 2016 01:10:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=B3=A8=E5=85=A5?= =?UTF-8?q?=E7=B1=BB=E4=B8=8E=E7=8E=A9=E5=AE=B6=E9=85=8D=E7=BD=AE=E7=B1=BB?= =?UTF-8?q?=E7=9A=84=E6=9E=84=E9=80=A0=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 502647092 --- src/main/java/pw/yumc/YumCore/config/InjectConfig.java | 5 ++--- src/main/java/pw/yumc/YumCore/config/PlayerConfig.java | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) 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)); } /**