feat: update to 0.9.1

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2020-08-27 17:30:59 +08:00
parent e71bd2a0cb
commit 427aa262f0
4 changed files with 10 additions and 4 deletions

View File

@ -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())) {

View File

@ -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

View File

@ -8,4 +8,5 @@ website: ${ciManagement.url}
load: STARTUP
softdepend:
- PlaceholderAPI
- ProtocolLib
- Vault