Class MVDumpsDebugInfoEvent

java.lang.Object
org.bukkit.event.Event
org.mvplugins.multiverse.core.event.MVDumpsDebugInfoEvent

public final class MVDumpsDebugInfoEvent extends org.bukkit.event.Event
Called when somebody requests version information about Multiverse.
  • Constructor Details

    • MVDumpsDebugInfoEvent

      public MVDumpsDebugInfoEvent()
  • Method Details

    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
      Gets the handler list. This is required by the event system.
      Returns:
      A list of HANDLERS.
    • getDebugInfo

      public String getDebugInfo()
      Gets the version-info currently saved in this event.
      Returns:
      The version-info.
    • getDetailedDebugInfo

      public Map<String,String> getDetailedDebugInfo()
      Gets the key/value pair of the detailed version info.

      This information is used for advanced paste services that would prefer to get the information as several files. Examples include config.yml or portals.yml. Note that the map returned is immutable.

      The keys are filenames, the values are the contents of the files.

      Returns:
      The immutable key value mapping of files and the contents of those files.
    • appendDebugInfo

      public void appendDebugInfo(String moreVersionInfo)
      Appends more version-info to the version-info currently saved in this event.
      Parameters:
      moreVersionInfo - The version-info to add. Should end with '\n'.
    • putDetailedDebugInfo

      public void putDetailedDebugInfo(String fileName, String contents)
      Adds a file to to the detailed version-info currently saved in this event.
      Parameters:
      fileName - The name of the file.
      contents - The contents of the file.
    • putDetailedDebugInfo

      public void putDetailedDebugInfo(String filename, File file)
      Adds a file to to the detailed version-info currently saved in this event.
      Parameters:
      filename - The name of the file.
      file - The file.