Convert to the far superior config system

This commit is contained in:
KingRainbow44
2022-05-11 00:30:07 -04:00
parent 5ad58a4566
commit 6894ab8aae
39 changed files with 504 additions and 373 deletions

View File

@@ -8,6 +8,8 @@ import java.io.File;
import java.io.InputStream;
import java.net.URLClassLoader;
import static emu.grasscutter.Configuration.*;
/**
* The base class for all plugins to extend.
*/
@@ -32,7 +34,7 @@ public abstract class Plugin {
this.identifier = identifier;
this.classLoader = classLoader;
this.dataFolder = new File(Grasscutter.getConfig().PLUGINS_FOLDER, identifier.name);
this.dataFolder = new File(PLUGINS_FOLDER, identifier.name);
if(!this.dataFolder.exists() && !this.dataFolder.mkdirs()) {
Grasscutter.getLogger().warn("Failed to create plugin data folder for " + this.identifier.name);