From 5d994fbb2734e99a30879a862c377b9302481576 Mon Sep 17 00:00:00 2001 From: 502647092 Date: Sun, 28 Aug 2016 21:05:16 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E6=96=B0=E6=9E=84?= =?UTF-8?q?=E9=80=A0=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 502647092 --- .../java/pw/yumc/YumCore/config/PlayerConfig.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/main/java/pw/yumc/YumCore/config/PlayerConfig.java b/src/main/java/pw/yumc/YumCore/config/PlayerConfig.java index 173d4ba..d609b13 100644 --- a/src/main/java/pw/yumc/YumCore/config/PlayerConfig.java +++ b/src/main/java/pw/yumc/YumCore/config/PlayerConfig.java @@ -13,6 +13,18 @@ import org.bukkit.entity.Player; public class PlayerConfig extends FileConfig { private static String CONFIG_FOLDER = "userdata"; + /** + * 获得玩家配置(保存在 指定 文件夹) + * + * @param plugin + * 插件 + * @param player + * 玩家 + */ + public PlayerConfig(final File dir, final String playername) { + super(new File(dir, CONFIG_FOLDER + File.separatorChar + playername + ".yml")); + } + /** * 获得玩家配置(保存在 CONFIG_FOLDER 文件夹) *