parent
e71bd2a0cb
commit
427aa262f0
4
pom.xml
4
pom.xml
|
@ -2,7 +2,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>0.7.5</version>
|
<version>0.9.1</version>
|
||||||
<developers>
|
<developers>
|
||||||
<developer>
|
<developer>
|
||||||
<id>502647092</id>
|
<id>502647092</id>
|
||||||
|
@ -53,6 +53,8 @@
|
||||||
<properties>
|
<properties>
|
||||||
<env.GIT_COMMIT>DEV</env.GIT_COMMIT>
|
<env.GIT_COMMIT>DEV</env.GIT_COMMIT>
|
||||||
<update.changes>
|
<update.changes>
|
||||||
|
§620-08-27 §afeat: 新增ProtocolLib依赖;
|
||||||
|
§620-07-28 §afeat: 新增框架升级功能;
|
||||||
§620-06-23 §afeat: 支持自定义参数;
|
§620-06-23 §afeat: 支持自定义参数;
|
||||||
§620-06-22 §afeat: 优化 require 加载逻辑;
|
§620-06-22 §afeat: 优化 require 加载逻辑;
|
||||||
§620-05-28 §afeat: 新增 Spring 的支持;
|
§620-05-28 §afeat: 新增 Spring 的支持;
|
||||||
|
|
|
@ -6,8 +6,6 @@ import java.nio.file.Files;
|
||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
import lombok.val;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created with IntelliJ IDEA
|
* Created with IntelliJ IDEA
|
||||||
*
|
*
|
||||||
|
@ -48,7 +46,7 @@ public class Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void delete(Path path) throws IOException {
|
public void delete(Path path) throws IOException {
|
||||||
val file = path.toFile();
|
File file = path.toFile();
|
||||||
if (!file.exists()) { return; }
|
if (!file.exists()) { return; }
|
||||||
if (file.isDirectory()) {
|
if (file.isDirectory()) {
|
||||||
for (Path f : Files.list(file.toPath()).collect(Collectors.toList())) {
|
for (Path f : Files.list(file.toPath()).collect(Collectors.toList())) {
|
||||||
|
|
|
@ -22,6 +22,11 @@ var global = this;
|
||||||
global.level = base.read(java.nio.file.Paths.get(root, "level"))
|
global.level = base.read(java.nio.file.Paths.get(root, "level"))
|
||||||
logger.info('Set system level to [' + global.level + ']...');
|
logger.info('Set system level to [' + global.level + ']...');
|
||||||
}
|
}
|
||||||
|
if (java.nio.file.Files.exists(java.nio.file.Paths.get(root, "upgrade"))) {
|
||||||
|
logger.info('Found upgrade file starting upgrade...');
|
||||||
|
base.delete(java.nio.file.Paths.get(root, "node_modules"))
|
||||||
|
base.delete(java.nio.file.Paths.get(root, "upgrade"))
|
||||||
|
}
|
||||||
// Check Class Loader, Sometimes Server will can't found plugin.yml file
|
// Check Class Loader, Sometimes Server will can't found plugin.yml file
|
||||||
loader = checkClassLoader();
|
loader = checkClassLoader();
|
||||||
// Async Loading MiaoScript Engine
|
// Async Loading MiaoScript Engine
|
||||||
|
|
|
@ -8,4 +8,5 @@ website: ${ciManagement.url}
|
||||||
load: STARTUP
|
load: STARTUP
|
||||||
softdepend:
|
softdepend:
|
||||||
- PlaceholderAPI
|
- PlaceholderAPI
|
||||||
|
- ProtocolLib
|
||||||
- Vault
|
- Vault
|
||||||
|
|
Loading…
Reference in New Issue