Package com.zetaplugins.zetacore.debug
Class ReportDataCollector
java.lang.Object
com.zetaplugins.zetacore.debug.ReportDataCollector
ReportDataCollector is responsible for collecting data for a debug report.
It gathers information about the plugin, server, and installed plugins,
and generates a
DebugReport object containing this data.-
Constructor Summary
ConstructorsConstructorDescriptionReportDataCollector(String modrinthId, JavaPlugin plugin, File pluginFile, Map<String, String> configs) Creates a new ReportDataCollector instance. -
Method Summary
Modifier and TypeMethodDescriptionstatic DebugReportCollects a debug report for the specified plugin.
-
Constructor Details
-
ReportDataCollector
public ReportDataCollector(String modrinthId, JavaPlugin plugin, File pluginFile, Map<String, String> configs) Creates a new ReportDataCollector instance.- Parameters:
modrinthId- the Modrinth ID of the plugin, used to identify the reportplugin- the JavaPlugin instance for which the report is being collectedpluginFile- the file of the plugin, used to generate a hash. Can be obtained using JavaPlugin#getFile(} inside a plugin's main class.configs- a map of configuration settings, where the key is the configuration file name and the value is the configuration saved as a string
-
-
Method Details
-
collect
public static DebugReport collect(String modrinthId, JavaPlugin plugin, File pluginFile, Map<String, String> configs) Collects a debug report for the specified plugin.- Parameters:
plugin- the JavaPlugin instance for which the report is being collectedpluginFile- the file of the plugin, used to generate a hash. Can be obtained using JavaPlugin#getFile(} inside a plugin's main class.configs- a map of configuration settings, where the key is the configuration file name and the value is the configuration saved as a string- Returns:
- a DebugReport object containing the collected data
-
collectReport
-