@@ -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())) {
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
 
 | 
			
		||||
@@ -8,4 +8,5 @@ website: ${ciManagement.url}
 | 
			
		||||
load: STARTUP
 | 
			
		||||
softdepend:
 | 
			
		||||
- PlaceholderAPI
 | 
			
		||||
- ProtocolLib
 | 
			
		||||
- Vault
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user