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>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>pw.yumc</groupId>
|
<groupId>pw.yumc</groupId>
|
||||||
<artifactId>MiaoScript</artifactId>
|
<artifactId>MiaoScript</artifactId>
|
||||||
<version>1.3.2</version>
|
<version>1.3.5</version>
|
||||||
<developers>
|
<developers>
|
||||||
<developer>
|
<developer>
|
||||||
<id>502647092</id>
|
<id>502647092</id>
|
||||||
@ -18,7 +18,7 @@
|
|||||||
<resource>
|
<resource>
|
||||||
<directory>src/main/resources</directory>
|
<directory>src/main/resources</directory>
|
||||||
<excludes>
|
<excludes>
|
||||||
<exclude>plugins/**</exclude>
|
<exclude>dev-plugins/**</exclude>
|
||||||
</excludes>
|
</excludes>
|
||||||
<filtering>true</filtering>
|
<filtering>true</filtering>
|
||||||
</resource>
|
</resource>
|
||||||
@ -26,7 +26,7 @@
|
|||||||
</build>
|
</build>
|
||||||
<ciManagement>
|
<ciManagement>
|
||||||
<system>Jenkins</system>
|
<system>Jenkins</system>
|
||||||
<url>https://ci.yumc.pw/job/${project.artifactId}/</url>
|
<url>https://ci.yumc.pw/job/Minecraft/${project.artifactId}/</url>
|
||||||
</ciManagement>
|
</ciManagement>
|
||||||
<properties>
|
<properties>
|
||||||
<env.GIT_COMMIT>DEV</env.GIT_COMMIT>
|
<env.GIT_COMMIT>DEV</env.GIT_COMMIT>
|
||||||
@ -135,7 +135,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.spigotmc</groupId>
|
<groupId>org.spigotmc</groupId>
|
||||||
<artifactId>spigot-api</artifactId>
|
<artifactId>spigot-api</artifactId>
|
||||||
<version>1.13.2-R0.1-SNAPSHOT</version>
|
<version>1.14.4-R0.1-SNAPSHOT</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.spongepowered</groupId>
|
<groupId>org.spongepowered</groupId>
|
||||||
|
@ -4,13 +4,13 @@ var boot;
|
|||||||
// noinspection ThisExpressionReferencesGlobalObjectJS
|
// noinspection ThisExpressionReferencesGlobalObjectJS
|
||||||
var global = this;
|
var global = this;
|
||||||
/**
|
/**
|
||||||
* 初始化框架引擎
|
* Init Engine Env
|
||||||
*/
|
*/
|
||||||
(function() {
|
(function() {
|
||||||
var loader;
|
var loader;
|
||||||
boot = function(root, logger) {
|
boot = function(root, logger) {
|
||||||
log = logger;
|
log = logger;
|
||||||
// 开发环境下初始化
|
// Development Env Detect
|
||||||
root = root || "src/main/resources";
|
root = root || "src/main/resources";
|
||||||
if (__FILE__ !== "<eval>") {
|
if (__FILE__ !== "<eval>") {
|
||||||
logger.info('Loading custom BIOS file ' + __FILE__);
|
logger.info('Loading custom BIOS file ' + __FILE__);
|
||||||
@ -20,10 +20,12 @@ var global = this;
|
|||||||
logger.info('Running debugging mode...');
|
logger.info('Running debugging mode...');
|
||||||
global.debug = true;
|
global.debug = true;
|
||||||
}
|
}
|
||||||
// 检查类加载器 防止找不到核心文件
|
// Check Class Loader, Sometimes Server will can't find plugin.yml file
|
||||||
loader = checkClassLoader();
|
loader = checkClassLoader();
|
||||||
// 解压文件到根目录 非调试模式直接从jar解压覆盖
|
// Force decompression core|node_modules to folder when not debug mode
|
||||||
release(root, '(core|node_modules)+/.*', !global.debug);
|
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');
|
load(root + '/core/init.js');
|
||||||
try {
|
try {
|
||||||
init(root);
|
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}
|
version: ${project.version}-git-${env.GIT_COMMIT}
|
||||||
author: 喵♂呜
|
author: 喵♂呜
|
||||||
website: ${ciManagement.url}
|
website: ${ciManagement.url}
|
||||||
|
load: STARTUP
|
||||||
softdepend:
|
softdepend:
|
||||||
- PlaceholderAPI
|
- PlaceholderAPI
|
||||||
commands:
|
- Vault
|
||||||
${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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user