1
0
mirror of https://e.coding.net/circlecloud/YumCore.git synced 2024-12-24 06:58:51 +00:00

feat: 添加新构造方法

Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
502647092 2016-08-28 21:05:16 +08:00
parent 001d525c5a
commit 5d994fbb27

View File

@ -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 文件夹)
*