mirror of
https://e.coding.net/circlecloud/YumCore.git
synced 2024-11-22 01:48:50 +00:00
feat: 添加新构造方法
Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
parent
001d525c5a
commit
5d994fbb27
@ -13,6 +13,18 @@ import org.bukkit.entity.Player;
|
|||||||
public class PlayerConfig extends FileConfig {
|
public class PlayerConfig extends FileConfig {
|
||||||
private static String CONFIG_FOLDER = "userdata";
|
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 文件夹)
|
* 获得玩家配置(保存在 CONFIG_FOLDER 文件夹)
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user