Class PluginContext

java.lang.Object
com.comphenix.protocol.error.PluginContext

public final class PluginContext extends Object
  • Method Details

    • getPluginCaller

      public static String getPluginCaller(Exception ex)
      Retrieve the name of the plugin that called the last method(s) in the exception.
      Parameters:
      ex - - the exception.
      Returns:
      The name of the plugin, or NULL.
    • getPluginName

      public static String getPluginName(StackTraceElement element)
      Lookup the plugin that this method invocation belongs to, and return its file name.
      Parameters:
      element - - the method invocation.
      Returns:
      Plugin name, or NULL if not found.