Basic plugin manager

This commit is contained in:
KingRainbow44
2022-04-22 21:45:44 -04:00
parent 1a056d2d13
commit e3d6b86dd9
7 changed files with 239 additions and 4 deletions

View File

@@ -137,6 +137,15 @@ public final class Utils {
return nonNull != null ? nonNull : fallback;
}
/**
* Logs an object to the console.
* @param object The object to log.
*/
public static void logObject(Object object) {
String asJson = Grasscutter.getGsonFactory().toJson(object);
Grasscutter.getLogger().info(asJson);
}
/**
* Checks for required files and folders before startup.
*/