Class GeyserSpigotPlugin
java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
org.geysermc.geyser.platform.spigot.GeyserSpigotPlugin
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor
,org.bukkit.command.TabCompleter
,org.bukkit.command.TabExecutor
,org.bukkit.plugin.Plugin
,GeyserBootstrap
public class GeyserSpigotPlugin
extends org.bukkit.plugin.java.JavaPlugin
implements GeyserBootstrap
-
Field Summary
Fields inherited from interface org.geysermc.geyser.GeyserBootstrap
DEFAULT_CHUNK_MANAGER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn the data folder where files get storedInformation used for the bootstrap section of the debug dumpReturns the current CommandManagerReturns the current GeyserConfigurationReturns the current GeyserLoggerReturns the current PingPassthrough managerReturns the Minecraft version currently being used on the server.com.viaversion.viaversion.api.protocol.version.ProtocolVersion
Returns the current WorldManagerboolean
isCompatible(String version, String whichVersion)
void
Called when the GeyserBootstrap is disabledvoid
onEnable()
Called when the GeyserBootstrap is enabledMethods inherited from class org.bukkit.plugin.java.JavaPlugin
getClassLoader, getCommand, getConfig, getDataFolder, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, getTextResource, isEnabled, isNaggable, onCommand, onLoad, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toString
Methods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.geysermc.geyser.GeyserBootstrap
getLogsPath
-
Constructor Details
-
GeyserSpigotPlugin
public GeyserSpigotPlugin()
-
-
Method Details
-
onEnable
public void onEnable()Description copied from interface:GeyserBootstrap
Called when the GeyserBootstrap is enabled- Specified by:
onEnable
in interfaceGeyserBootstrap
- Specified by:
onEnable
in interfaceorg.bukkit.plugin.Plugin
- Overrides:
onEnable
in classorg.bukkit.plugin.java.JavaPlugin
-
onDisable
public void onDisable()Description copied from interface:GeyserBootstrap
Called when the GeyserBootstrap is disabled- Specified by:
onDisable
in interfaceGeyserBootstrap
- Specified by:
onDisable
in interfaceorg.bukkit.plugin.Plugin
- Overrides:
onDisable
in classorg.bukkit.plugin.java.JavaPlugin
-
getGeyserConfig
Description copied from interface:GeyserBootstrap
Returns the current GeyserConfiguration- Specified by:
getGeyserConfig
in interfaceGeyserBootstrap
- Returns:
- The current GeyserConfiguration
-
getGeyserLogger
Description copied from interface:GeyserBootstrap
Returns the current GeyserLogger- Specified by:
getGeyserLogger
in interfaceGeyserBootstrap
- Returns:
- The current GeyserLogger
-
getGeyserCommandManager
Description copied from interface:GeyserBootstrap
Returns the current CommandManager- Specified by:
getGeyserCommandManager
in interfaceGeyserBootstrap
- Returns:
- The current CommandManager
-
getGeyserPingPassthrough
Description copied from interface:GeyserBootstrap
Returns the current PingPassthrough manager- Specified by:
getGeyserPingPassthrough
in interfaceGeyserBootstrap
- Returns:
- The current PingPassthrough manager
-
getWorldManager
Description copied from interface:GeyserBootstrap
Returns the current WorldManager- Specified by:
getWorldManager
in interfaceGeyserBootstrap
- Returns:
- the current WorldManager
-
getConfigFolder
Description copied from interface:GeyserBootstrap
Return the data folder where files get stored- Specified by:
getConfigFolder
in interfaceGeyserBootstrap
- Returns:
- Path location of data folder
-
getDumpInfo
Description copied from interface:GeyserBootstrap
Information used for the bootstrap section of the debug dump- Specified by:
getDumpInfo
in interfaceGeyserBootstrap
- Returns:
- The info about the bootstrap
-
getMinecraftServerVersion
Description copied from interface:GeyserBootstrap
Returns the Minecraft version currently being used on the server. This should be only be implemented on platforms that have direct server access - platforms such as proxies always have to be on their latest version to support the newest Minecraft version, but older servers can use ViaVersion to enable newer versions to join.
If used, this should not be null beforeGeyserImpl
initialization.- Specified by:
getMinecraftServerVersion
in interfaceGeyserBootstrap
- Returns:
- the Minecraft version being used on the server, or
null
if not applicable
-
getSocketAddress
- Specified by:
getSocketAddress
in interfaceGeyserBootstrap
-
isCompatible
-
getServerProtocolVersion
public com.viaversion.viaversion.api.protocol.version.ProtocolVersion getServerProtocolVersion()- Returns:
- the server version before ViaVersion finishes initializing
-