Class PaperErrorTracker
java.lang.Object
io.github.projectunified.faststats.core.Feature
io.github.projectunified.faststats.paper.PaperErrorTracker
- All Implemented Interfaces:
org.bukkit.event.Listener
A feature that registers an event listener on Paper servers to track uncaught server plugin exceptions
responsible by the registered plugin, reporting them to the core
ErrorTracker feature.-
Constructor Summary
ConstructorsConstructorDescriptionPaperErrorTracker(org.bukkit.plugin.Plugin plugin) Constructs a newPaperErrorTrackerfor the specified plugin. -
Method Summary
Modifier and TypeMethodDescriptionvoidonServerException(com.destroystokyo.paper.event.server.ServerExceptionEvent event) Handles server exceptions to track plugin errors.voidCalled when the Metrics coordinator is shutdown.voidonStart()Called when the Metrics coordinator is started.Methods inherited from class Feature
getDefaultProperties, getFeature, getProperty, getScheduler, submit
-
Constructor Details
-
PaperErrorTracker
public PaperErrorTracker(org.bukkit.plugin.Plugin plugin) Constructs a newPaperErrorTrackerfor the specified plugin.- Parameters:
plugin- the plugin to track exceptions for
-
-
Method Details
-
onStart
-
onShutdown
public void onShutdown()Description copied from class:FeatureCalled when the Metrics coordinator is shutdown. Subclasses can override this to release resources or stop listeners.- Overrides:
onShutdownin classFeature
-
onServerException
public void onServerException(com.destroystokyo.paper.event.server.ServerExceptionEvent event) Handles server exceptions to track plugin errors.- Parameters:
event- the server exception event
-