parent
001d525c5a
commit
5d994fbb27
|
@ -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 文件夹)
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue