diff --git a/pom.xml b/pom.xml index a211852..b8445a4 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 pw.yumc MiaoScript - 1.3.2 + 1.3.5 502647092 @@ -18,7 +18,7 @@ src/main/resources - plugins/** + dev-plugins/** true @@ -26,7 +26,7 @@ Jenkins - https://ci.yumc.pw/job/${project.artifactId}/ + https://ci.yumc.pw/job/Minecraft/${project.artifactId}/ DEV @@ -135,7 +135,7 @@ org.spigotmc spigot-api - 1.13.2-R0.1-SNAPSHOT + 1.14.4-R0.1-SNAPSHOT org.spongepowered diff --git a/src/main/resources/bios.js b/src/main/resources/bios.js index 8d428e8..afa4ab2 100644 --- a/src/main/resources/bios.js +++ b/src/main/resources/bios.js @@ -4,13 +4,13 @@ var boot; // noinspection ThisExpressionReferencesGlobalObjectJS var global = this; /** - * 初始化框架引擎 + * Init Engine Env */ (function() { var loader; boot = function(root, logger) { log = logger; - // 开发环境下初始化 + // Development Env Detect root = root || "src/main/resources"; if (__FILE__ !== "") { logger.info('Loading custom BIOS file ' + __FILE__); @@ -20,10 +20,12 @@ var global = this; logger.info('Running debugging mode...'); global.debug = true; } - // 检查类加载器 防止找不到核心文件 + // Check Class Loader, Sometimes Server will can't find plugin.yml file loader = checkClassLoader(); - // 解压文件到根目录 非调试模式直接从jar解压覆盖 + // Force decompression core|node_modules to folder when not debug mode release(root, '(core|node_modules)+/.*', !global.debug); + // Plugin file decompression to folder when file not exist + release(root, '(plugins)+/.*', false); load(root + '/core/init.js'); try { init(root); @@ -77,4 +79,4 @@ var global = this; } }) } -})(); \ No newline at end of file +})(); diff --git a/src/main/resources/plugins/HelloWorld.js b/src/main/resources/dev-plugins/HelloWorld.js similarity index 100% rename from src/main/resources/plugins/HelloWorld.js rename to src/main/resources/dev-plugins/HelloWorld.js diff --git a/src/main/resources/plugins/ItemTag.js b/src/main/resources/dev-plugins/ItemTag.js similarity index 100% rename from src/main/resources/plugins/ItemTag.js rename to src/main/resources/dev-plugins/ItemTag.js diff --git a/src/main/resources/plugins/MiaoAuth.js b/src/main/resources/dev-plugins/MiaoAuth.js similarity index 100% rename from src/main/resources/plugins/MiaoAuth.js rename to src/main/resources/dev-plugins/MiaoAuth.js diff --git a/src/main/resources/plugins/MiaoChat.js b/src/main/resources/dev-plugins/MiaoChat.js similarity index 100% rename from src/main/resources/plugins/MiaoChat.js rename to src/main/resources/dev-plugins/MiaoChat.js diff --git a/src/main/resources/plugins/bukkit/Lottery.js b/src/main/resources/dev-plugins/bukkit/Lottery.js similarity index 100% rename from src/main/resources/plugins/bukkit/Lottery.js rename to src/main/resources/dev-plugins/bukkit/Lottery.js diff --git a/src/main/resources/plugins/bukkit/MiaoTag.js b/src/main/resources/dev-plugins/bukkit/MiaoTag.js similarity index 100% rename from src/main/resources/plugins/bukkit/MiaoTag.js rename to src/main/resources/dev-plugins/bukkit/MiaoTag.js diff --git a/src/main/resources/plugins/bukkit/WorldEdit.js b/src/main/resources/dev-plugins/bukkit/WorldEdit.js similarity index 100% rename from src/main/resources/plugins/bukkit/WorldEdit.js rename to src/main/resources/dev-plugins/bukkit/WorldEdit.js diff --git a/src/main/resources/plugins/markdown/MiaoChat.md b/src/main/resources/dev-plugins/markdown/MiaoChat.md similarity index 100% rename from src/main/resources/plugins/markdown/MiaoChat.md rename to src/main/resources/dev-plugins/markdown/MiaoChat.md diff --git a/src/main/resources/plugins/sponge/MiaoBoard.js b/src/main/resources/dev-plugins/sponge/MiaoBoard.js similarity index 100% rename from src/main/resources/plugins/sponge/MiaoBoard.js rename to src/main/resources/dev-plugins/sponge/MiaoBoard.js diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 6c65fee..110a56e 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -4,23 +4,7 @@ main: ${project.groupId}.${project.artifactId}.${project.artifactId} version: ${project.version}-git-${env.GIT_COMMIT} author: 喵♂呜 website: ${ciManagement.url} +load: STARTUP softdepend: - PlaceholderAPI -commands: - ${project.artifactId}: - description: ${project.artifactId} - ${project.description} - aliases: - - ms - - mjs - - script - - mscript - usage: §b使用/${project.artifactId} help 查看帮助! - permission: ${project.artifactId}.reload - permission-message: §c你没有 的权限来执行此命令! -permissions: - ${project.artifactId}.use: - description: ${project.artifactId} 使用! - default: true - ${project.artifactId}.reload: - description: 重新载入插件! - default: op \ No newline at end of file +- Vault