Basic plugin manager

This commit is contained in:
KingRainbow44
2022-04-22 21:45:44 -04:00
Unverified
parent 1a056d2d13
commit e3d6b86dd9
7 changed files with 239 additions and 4 deletions
@@ -0,0 +1,18 @@
package emu.grasscutter.plugin;
/**
* The data contained in the plugin's `plugin.json` file.
*/
public final class PluginConfig {
public String name, description, version;
public String mainClass;
public String[] authors;
/**
* Attempts to validate this config instance.
* @return True if the config is valid, false otherwise.
*/
public boolean validate() {
return name != null && description != null && mainClass != null;
}
}