Interface MVPlugin
-
- All Superinterfaces:
LoggablePlugin
- All Known Implementing Classes:
MultiverseCore
,MultiversePlugin
public interface MVPlugin extends LoggablePlugin
This interface is implemented by every official Multiverse-plugin.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.lang.String
dumpVersionInfo(java.lang.String buffer)
Deprecated.This is now deprecated, nobody needs it any longer.MultiverseCore
getCore()
Gets the reference to MultiverseCore.int
getProtocolVersion()
Allows Multiverse or a plugin to query another Multiverse plugin to see what version its protocol is.void
setCore(MultiverseCore core)
Sets the reference to MultiverseCore.-
Methods inherited from interface com.onarandombox.MultiverseCore.api.LoggablePlugin
getServer, log
-
-
-
-
Method Detail
-
dumpVersionInfo
@Deprecated java.lang.String dumpVersionInfo(java.lang.String buffer)
Deprecated.This is now deprecated, nobody needs it any longer. All version info-dumping is now done withMVVersionEvent
.Adds This plugin's version information to the buffer and returns the new string.- Parameters:
buffer
- The string that contains Core and all other MV plugins' versions.- Returns:
- A modified buffer that contains this MVPlugin's version information.
-
getCore
MultiverseCore getCore()
Gets the reference to MultiverseCore.- Returns:
- A valid
com.onarandombox.MultiverseCore
.
-
setCore
void setCore(MultiverseCore core)
Sets the reference to MultiverseCore.- Parameters:
core
- A validcom.onarandombox.MultiverseCore
.
-
getProtocolVersion
int getProtocolVersion()
Allows Multiverse or a plugin to query another Multiverse plugin to see what version its protocol is. This number should change when something will break the code.- Returns:
- The Integer protocol version.
-
-