feat: move plugin file & optimize bios
Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
parent
4653bbc091
commit
c5b7a45605
8
pom.xml
8
pom.xml
@ -3,7 +3,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>pw.yumc</groupId>
|
||||
<artifactId>MiaoScript</artifactId>
|
||||
<version>1.3.2</version>
|
||||
<version>1.3.5</version>
|
||||
<developers>
|
||||
<developer>
|
||||
<id>502647092</id>
|
||||
@ -18,7 +18,7 @@
|
||||
<resource>
|
||||
<directory>src/main/resources</directory>
|
||||
<excludes>
|
||||
<exclude>plugins/**</exclude>
|
||||
<exclude>dev-plugins/**</exclude>
|
||||
</excludes>
|
||||
<filtering>true</filtering>
|
||||
</resource>
|
||||
@ -26,7 +26,7 @@
|
||||
</build>
|
||||
<ciManagement>
|
||||
<system>Jenkins</system>
|
||||
<url>https://ci.yumc.pw/job/${project.artifactId}/</url>
|
||||
<url>https://ci.yumc.pw/job/Minecraft/${project.artifactId}/</url>
|
||||
</ciManagement>
|
||||
<properties>
|
||||
<env.GIT_COMMIT>DEV</env.GIT_COMMIT>
|
||||
@ -135,7 +135,7 @@
|
||||
<dependency>
|
||||
<groupId>org.spigotmc</groupId>
|
||||
<artifactId>spigot-api</artifactId>
|
||||
<version>1.13.2-R0.1-SNAPSHOT</version>
|
||||
<version>1.14.4-R0.1-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.spongepowered</groupId>
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user