mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-17 19:33:26 +08:00
Basic plugin manager
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user