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,org.geysermc.geyser.GeyserBootstrap
public class GeyserSpigotPlugin
extends org.bukkit.plugin.java.JavaPlugin
implements org.geysermc.geyser.GeyserBootstrap
-
Field Summary
Fields inherited from interface org.geysermc.geyser.GeyserBootstrap
DEFAULT_CHUNK_MANAGER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.geysermc.geyser.configuration.GeyserPluginConfigconfig()org.geysermc.geyser.util.metrics.MetricsPlatformorg.geysermc.geyser.command.CommandRegistryorg.geysermc.geyser.dump.BootstrapDumpInfoorg.geysermc.geyser.ping.IGeyserPingPassthrough@NonNull String@NonNull Stringintcom.viaversion.viaversion.api.protocol.version.ProtocolVersionorg.geysermc.geyser.level.WorldManagervoidvoidonEnable()voidvoidvoidvoidvoidonLoad()@NonNull org.geysermc.geyser.api.util.PlatformTypebooleanMethods inherited from class org.bukkit.plugin.java.JavaPlugin
getClassLoader, getCommand, getConfig, getDataFolder, getDefaultBiomeProvider, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getPluginMeta, getProvidingPlugin, getResource, getServer, getTextResource, init, init, isEnabled, isNaggable, onCommand, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toStringMethods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geysermc.geyser.GeyserBootstrap
getLogsPath, getResourceOrNull, getResourceOrThrow, getSavedUserLoginsFolder, loadConfigMethods inherited from interface org.bukkit.plugin.Plugin
getComponentLogger, getLog4JLogger, getSLF4JLogger
-
Constructor Details
-
GeyserSpigotPlugin
public GeyserSpigotPlugin()
-
-
Method Details
-
onLoad
public void onLoad()- Specified by:
onLoadin interfaceorg.bukkit.plugin.Plugin- Overrides:
onLoadin classorg.bukkit.plugin.java.JavaPlugin
-
onGeyserInitialize
public void onGeyserInitialize()- Specified by:
onGeyserInitializein interfaceorg.geysermc.geyser.GeyserBootstrap
-
onEnable
public void onEnable()- Specified by:
onEnablein interfaceorg.bukkit.plugin.Plugin- Overrides:
onEnablein classorg.bukkit.plugin.java.JavaPlugin
-
onGeyserEnable
public void onGeyserEnable()- Specified by:
onGeyserEnablein interfaceorg.geysermc.geyser.GeyserBootstrap
-
onGeyserDisable
public void onGeyserDisable()- Specified by:
onGeyserDisablein interfaceorg.geysermc.geyser.GeyserBootstrap
-
onGeyserShutdown
public void onGeyserShutdown()- Specified by:
onGeyserShutdownin interfaceorg.geysermc.geyser.GeyserBootstrap
-
onDisable
public void onDisable()- Specified by:
onDisablein interfaceorg.bukkit.plugin.Plugin- Overrides:
onDisablein classorg.bukkit.plugin.java.JavaPlugin
-
platformType
public @NonNull org.geysermc.geyser.api.util.PlatformType platformType()- Specified by:
platformTypein interfaceorg.geysermc.geyser.GeyserBootstrap
-
config
public org.geysermc.geyser.configuration.GeyserPluginConfig config()- Specified by:
configin interfaceorg.geysermc.geyser.GeyserBootstrap
-
getGeyserLogger
- Specified by:
getGeyserLoggerin interfaceorg.geysermc.geyser.GeyserBootstrap
-
getCommandRegistry
public org.geysermc.geyser.command.CommandRegistry getCommandRegistry()- Specified by:
getCommandRegistryin interfaceorg.geysermc.geyser.GeyserBootstrap
-
getGeyserPingPassthrough
public org.geysermc.geyser.ping.IGeyserPingPassthrough getGeyserPingPassthrough()- Specified by:
getGeyserPingPassthroughin interfaceorg.geysermc.geyser.GeyserBootstrap
-
getWorldManager
public org.geysermc.geyser.level.WorldManager getWorldManager()- Specified by:
getWorldManagerin interfaceorg.geysermc.geyser.GeyserBootstrap
-
getConfigFolder
- Specified by:
getConfigFolderin interfaceorg.geysermc.geyser.GeyserBootstrap
-
getDumpInfo
public org.geysermc.geyser.dump.BootstrapDumpInfo getDumpInfo()- Specified by:
getDumpInfoin interfaceorg.geysermc.geyser.GeyserBootstrap
-
getMinecraftServerVersion
- Specified by:
getMinecraftServerVersionin interfaceorg.geysermc.geyser.GeyserBootstrap
-
getServerPlatform
- Specified by:
getServerPlatformin interfaceorg.geysermc.geyser.GeyserBootstrap
-
getSocketAddress
- Specified by:
getSocketAddressin interfaceorg.geysermc.geyser.GeyserBootstrap
-
getServerProtocolVersion
public com.viaversion.viaversion.api.protocol.version.ProtocolVersion getServerProtocolVersion()- Returns:
- the server version before ViaVersion finishes initializing
-
getServerBindAddress
- Specified by:
getServerBindAddressin interfaceorg.geysermc.geyser.GeyserBootstrap
-
getServerPort
public int getServerPort()- Specified by:
getServerPortin interfaceorg.geysermc.geyser.GeyserBootstrap
-
testFloodgatePluginPresent
public boolean testFloodgatePluginPresent()- Specified by:
testFloodgatePluginPresentin interfaceorg.geysermc.geyser.GeyserBootstrap
-
getFloodgateKeyPath
- Specified by:
getFloodgateKeyPathin interfaceorg.geysermc.geyser.GeyserBootstrap
-
createMetricsPlatform
public org.geysermc.geyser.util.metrics.MetricsPlatform createMetricsPlatform()- Specified by:
createMetricsPlatformin interfaceorg.geysermc.geyser.GeyserBootstrap
-