feat: move plugin file & optimize bios
Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
@ -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__ !== "<eval>") {
|
||||
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;
|
||||
}
|
||||
})
|
||||
}
|
||||
})();
|
||||
})();
|
||||
|
@ -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你没有 <permission> 的权限来执行此命令!
|
||||
permissions:
|
||||
${project.artifactId}.use:
|
||||
description: ${project.artifactId} 使用!
|
||||
default: true
|
||||
${project.artifactId}.reload:
|
||||
description: 重新载入插件!
|
||||
default: op
|
||||
- Vault
|
||||
|
Reference in New Issue
Block a user