Class MVVersionEvent
- java.lang.Object
-
- org.bukkit.event.Event
-
- com.onarandombox.MultiverseCore.event.MVVersionEvent
-
public class MVVersionEvent extends org.bukkit.event.Event
Called when somebody requests version information about Multiverse.
-
-
Constructor Summary
Constructors Constructor Description MVVersionEvent()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendVersionInfo(java.lang.String moreVersionInfo)
Appends more version-info to the version-info currently saved in this event.java.util.Map<java.lang.String,java.lang.String>
getDetailedVersionInfo()
Gets the key/value pair of the detailed version info.static org.bukkit.event.HandlerList
getHandlerList()
Gets the handler list.org.bukkit.event.HandlerList
getHandlers()
java.lang.String
getVersionInfo()
Gets the version-info currently saved in this event.void
putDetailedVersionInfo(java.lang.String filename, java.io.File file)
Adds a file to to the detailed version-info currently saved in this event.void
putDetailedVersionInfo(java.lang.String fileName, java.lang.String contents)
Adds a file to to the detailed version-info currently saved in this event.
-
-
-
Method Detail
-
getHandlers
public 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.
-
getVersionInfo
public java.lang.String getVersionInfo()
Gets the version-info currently saved in this event.- Returns:
- The version-info.
-
getDetailedVersionInfo
public java.util.Map<java.lang.String,java.lang.String> getDetailedVersionInfo()
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.
-
appendVersionInfo
public void appendVersionInfo(java.lang.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'.
-
putDetailedVersionInfo
public void putDetailedVersionInfo(java.lang.String fileName, java.lang.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.
-
putDetailedVersionInfo
public void putDetailedVersionInfo(java.lang.String filename, java.io.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.
-
-