diff --git a/pom.xml b/pom.xml
index 79f68fe..ff2d73c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2,7 +2,7 @@
4.0.0
pw.yumc
MiaoScript
- 0.7.5
+ 0.9.1
502647092
@@ -53,6 +53,8 @@
DEV
+ §620-08-27 §afeat: 新增ProtocolLib依赖;
+ §620-07-28 §afeat: 新增框架升级功能;
§620-06-23 §afeat: 支持自定义参数;
§620-06-22 §afeat: 优化 require 加载逻辑;
§620-05-28 §afeat: 新增 Spring 的支持;
diff --git a/src/main/java/pw/yumc/MiaoScript/Base.java b/src/main/java/pw/yumc/MiaoScript/Base.java
index 7568d80..cff4006 100644
--- a/src/main/java/pw/yumc/MiaoScript/Base.java
+++ b/src/main/java/pw/yumc/MiaoScript/Base.java
@@ -6,8 +6,6 @@ import java.nio.file.Files;
import java.nio.file.Path;
import java.util.stream.Collectors;
-import lombok.val;
-
/**
* Created with IntelliJ IDEA
*
@@ -48,7 +46,7 @@ public class Base {
}
public void delete(Path path) throws IOException {
- val file = path.toFile();
+ File file = path.toFile();
if (!file.exists()) { return; }
if (file.isDirectory()) {
for (Path f : Files.list(file.toPath()).collect(Collectors.toList())) {
diff --git a/src/main/resources/bios.js b/src/main/resources/bios.js
index adef27a..76bce52 100644
--- a/src/main/resources/bios.js
+++ b/src/main/resources/bios.js
@@ -22,6 +22,11 @@ var global = this;
global.level = base.read(java.nio.file.Paths.get(root, "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
loader = checkClassLoader();
// Async Loading MiaoScript Engine
diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml
index 9f86cff..fa163a2 100644
--- a/src/main/resources/plugin.yml
+++ b/src/main/resources/plugin.yml
@@ -8,4 +8,5 @@ website: ${ciManagement.url}
load: STARTUP
softdepend:
- PlaceholderAPI
+- ProtocolLib
- Vault