mirror of
https://e.coding.net/circlecloud/YumCore.git
synced 2025-09-02 11:36:59 +00:00
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user