mirror of
https://e.coding.net/circlecloud/YumCore.git
synced 2024-11-22 01:48:50 +00:00
refactor: 整理配置类类文件
Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
parent
6ac2b8cf78
commit
aa7608fba2
@ -1,4 +1,4 @@
|
|||||||
package pw.yumc.YumCore.config;
|
package pw.yumc.YumCore.config.annotation;
|
||||||
|
|
||||||
import java.lang.annotation.Documented;
|
import java.lang.annotation.Documented;
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
@ -1,4 +1,4 @@
|
|||||||
package pw.yumc.YumCore.config;
|
package pw.yumc.YumCore.config.annotation;
|
||||||
|
|
||||||
import java.lang.annotation.Documented;
|
import java.lang.annotation.Documented;
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
@ -1,4 +1,4 @@
|
|||||||
package pw.yumc.YumCore.config;
|
package pw.yumc.YumCore.config.annotation;
|
||||||
|
|
||||||
import java.lang.annotation.Documented;
|
import java.lang.annotation.Documented;
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
@ -1,9 +1,11 @@
|
|||||||
package pw.yumc.YumCore.config;
|
package pw.yumc.YumCore.config.ext;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
|
import pw.yumc.YumCore.config.FileConfig;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 玩家配置管理类
|
* 玩家配置管理类
|
||||||
*
|
*
|
@ -1,10 +1,11 @@
|
|||||||
package pw.yumc.YumCore.config;
|
package pw.yumc.YumCore.config.ext;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.net.MalformedURLException;
|
import java.net.MalformedURLException;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
|
|
||||||
import pw.yumc.YumCore.bukkit.Log;
|
import pw.yumc.YumCore.bukkit.Log;
|
||||||
|
import pw.yumc.YumCore.config.FileConfig;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 远程配置文件类
|
* 远程配置文件类
|
@ -1,9 +1,10 @@
|
|||||||
package pw.yumc.YumCore.config;
|
package pw.yumc.YumCore.config.ext;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
import pw.yumc.YumCore.bukkit.Log;
|
import pw.yumc.YumCore.bukkit.Log;
|
||||||
|
import pw.yumc.YumCore.config.FileConfig;
|
||||||
|
|
||||||
public class YumConfig {
|
public class YumConfig {
|
||||||
protected static final String REMOTEFILECENTER = "http://data.yumc.pw/config/";
|
protected static final String REMOTEFILECENTER = "http://data.yumc.pw/config/";
|
@ -12,9 +12,9 @@ import org.bukkit.ChatColor;
|
|||||||
import org.bukkit.configuration.ConfigurationSection;
|
import org.bukkit.configuration.ConfigurationSection;
|
||||||
|
|
||||||
import pw.yumc.YumCore.bukkit.Log;
|
import pw.yumc.YumCore.bukkit.Log;
|
||||||
import pw.yumc.YumCore.config.ConfigNode;
|
import pw.yumc.YumCore.config.annotation.ConfigNode;
|
||||||
import pw.yumc.YumCore.config.Default;
|
import pw.yumc.YumCore.config.annotation.Default;
|
||||||
import pw.yumc.YumCore.config.Nullable;
|
import pw.yumc.YumCore.config.annotation.Nullable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 抽象注入配置
|
* 抽象注入配置
|
||||||
|
@ -9,7 +9,7 @@ import org.bukkit.material.SpawnEgg;
|
|||||||
|
|
||||||
import pw.yumc.YumCore.bukkit.Log;
|
import pw.yumc.YumCore.bukkit.Log;
|
||||||
import pw.yumc.YumCore.config.FileConfig;
|
import pw.yumc.YumCore.config.FileConfig;
|
||||||
import pw.yumc.YumCore.config.YumConfig;
|
import pw.yumc.YumCore.config.ext.YumConfig;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 本地化工具类
|
* 本地化工具类
|
||||||
|
Loading…
Reference in New Issue
Block a user