1
mirror of https://github.com/CarmJos/MineSQL.git synced 2026-06-04 16:43:03 +08:00

添加默认配置与示例配置

This commit is contained in:
2022-02-23 03:41:08 +08:00
parent 2345f3567f
commit d131962956
5 changed files with 85 additions and 9 deletions
@@ -30,8 +30,7 @@ public class EasySQLBukkit extends EasyPlugin implements EasySQLPluginPlatform {
EasySQLBukkit.instance = this;
this.registry = new EasySQLRegistryImpl(this);
initializeAPI(getRegistry());
initializeAPI(getRegistry()); // 尽快的初始化接口,方便其他插件调用
}
@Override
@@ -56,7 +55,7 @@ public class EasySQLBukkit extends EasyPlugin implements EasySQLPluginPlatform {
@Override
public @NotNull
Map<String, Properties> readProperties() {
return PropertiesUtil.readDBProperties(new File(getDataFolder(), "properties"));
return PropertiesUtil.readDBProperties(new File(getDataFolder(), "db-properties"));
}
@Override
@@ -1,7 +1,7 @@
main: cc.carm.plugin.easysql.EasySQLBukkit
version: ${project.version}
prefix: EasySQL-Plugin
name: EasySQL-Plugin-Bukkit
name: EasySQL-Plugin
load: STARTUP
website: ${project.url}
@@ -81,7 +81,7 @@ public class EasySQLBungee extends Plugin implements EasySQLPluginPlatform {
@Override
public @NotNull Map<String, Properties> readProperties() {
return PropertiesUtil.readDBProperties(new File(getDataFolder(), "properties"));
return PropertiesUtil.readDBProperties(new File(getDataFolder(), "db-properties"));
}