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.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
appendDebugInfo
(String moreVersionInfo) Appends more version-info to the version-info currently saved in this event.Gets the version-info currently saved in this event.Gets the key/value pair of the detailed version info.static org.bukkit.event.HandlerList
Gets the handler list.@NotNull org.bukkit.event.HandlerList
void
putDetailedDebugInfo
(String filename, File file) Adds a file to to the detailed version-info currently saved in this event.void
putDetailedDebugInfo
(String fileName, String contents) Adds a file to to the detailed version-info currently saved in this event.Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
MVDumpsDebugInfoEvent
public MVDumpsDebugInfoEvent()
-
-
Method Details
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.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
Gets the version-info currently saved in this event.- Returns:
- The version-info.
-
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
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
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
Adds a file to to the detailed version-info currently saved in this event.- Parameters:
filename
- The name of the file.file
- The file.
-