Class PaperErrorTracker

java.lang.Object
io.github.projectunified.faststats.core.Feature
io.github.projectunified.faststats.paper.PaperErrorTracker
All Implemented Interfaces:
org.bukkit.event.Listener

public class PaperErrorTracker extends Feature implements 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 Details

    • PaperErrorTracker

      public PaperErrorTracker(org.bukkit.plugin.Plugin plugin)
      Constructs a new PaperErrorTracker for the specified plugin.
      Parameters:
      plugin - the plugin to track exceptions for
  • Method Details

    • onStart

      public void onStart()
      Description copied from class: Feature
      Called when the Metrics coordinator is started. Subclasses can override this to initialize scheduling or start listeners.
      Overrides:
      onStart in class Feature
    • onShutdown

      public void onShutdown()
      Description copied from class: Feature
      Called when the Metrics coordinator is shutdown. Subclasses can override this to release resources or stop listeners.
      Overrides:
      onShutdown in class Feature
    • onServerException

      public void onServerException(com.destroystokyo.paper.event.server.ServerExceptionEvent event)
      Handles server exceptions to track plugin errors.
      Parameters:
      event - the server exception event