mirror of
https://github.com/Melledy/Grasscutter.git
synced 2025-02-06 09:38:47 +00:00
19 lines
478 B
Java
19 lines
478 B
Java
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;
|
|
}
|
|
}
|