Class GeyserSpigotPlugin

java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
org.geysermc.geyser.platform.spigot.GeyserSpigotPlugin
All Implemented Interfaces:
io.papermc.paper.plugin.lifecycle.event.LifecycleEventOwner, net.kyori.adventure.key.Namespaced, 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
  • Constructor Details

    • GeyserSpigotPlugin

      public GeyserSpigotPlugin()
  • Method Details

    • onLoad

      public void onLoad()
      Specified by:
      onLoad in interface org.bukkit.plugin.Plugin
      Overrides:
      onLoad in class org.bukkit.plugin.java.JavaPlugin
    • onGeyserInitialize

      public void onGeyserInitialize()
      Specified by:
      onGeyserInitialize in interface org.geysermc.geyser.GeyserBootstrap
    • onEnable

      public void onEnable()
      Specified by:
      onEnable in interface org.bukkit.plugin.Plugin
      Overrides:
      onEnable in class org.bukkit.plugin.java.JavaPlugin
    • onGeyserEnable

      public void onGeyserEnable()
      Specified by:
      onGeyserEnable in interface org.geysermc.geyser.GeyserBootstrap
    • onGeyserDisable

      public void onGeyserDisable()
      Specified by:
      onGeyserDisable in interface org.geysermc.geyser.GeyserBootstrap
    • onGeyserShutdown

      public void onGeyserShutdown()
      Specified by:
      onGeyserShutdown in interface org.geysermc.geyser.GeyserBootstrap
    • onDisable

      public void onDisable()
      Specified by:
      onDisable in interface org.bukkit.plugin.Plugin
      Overrides:
      onDisable in class org.bukkit.plugin.java.JavaPlugin
    • platformType

      public @NonNull org.geysermc.geyser.api.util.PlatformType platformType()
      Specified by:
      platformType in interface org.geysermc.geyser.GeyserBootstrap
    • config

      public org.geysermc.geyser.configuration.GeyserPluginConfig config()
      Specified by:
      config in interface org.geysermc.geyser.GeyserBootstrap
    • getGeyserLogger

      public GeyserSpigotLogger getGeyserLogger()
      Specified by:
      getGeyserLogger in interface org.geysermc.geyser.GeyserBootstrap
    • getCommandRegistry

      public org.geysermc.geyser.command.CommandRegistry getCommandRegistry()
      Specified by:
      getCommandRegistry in interface org.geysermc.geyser.GeyserBootstrap
    • getGeyserPingPassthrough

      public org.geysermc.geyser.ping.IGeyserPingPassthrough getGeyserPingPassthrough()
      Specified by:
      getGeyserPingPassthrough in interface org.geysermc.geyser.GeyserBootstrap
    • getWorldManager

      public org.geysermc.geyser.level.WorldManager getWorldManager()
      Specified by:
      getWorldManager in interface org.geysermc.geyser.GeyserBootstrap
    • getConfigFolder

      public Path getConfigFolder()
      Specified by:
      getConfigFolder in interface org.geysermc.geyser.GeyserBootstrap
    • getDumpInfo

      public org.geysermc.geyser.dump.BootstrapDumpInfo getDumpInfo()
      Specified by:
      getDumpInfo in interface org.geysermc.geyser.GeyserBootstrap
    • getMinecraftServerVersion

      public String getMinecraftServerVersion()
      Specified by:
      getMinecraftServerVersion in interface org.geysermc.geyser.GeyserBootstrap
    • getServerPlatform

      public @NonNull String getServerPlatform()
      Specified by:
      getServerPlatform in interface org.geysermc.geyser.GeyserBootstrap
    • getSocketAddress

      public SocketAddress getSocketAddress()
      Specified by:
      getSocketAddress in interface org.geysermc.geyser.GeyserBootstrap
    • getServerProtocolVersion

      public com.viaversion.viaversion.api.protocol.version.ProtocolVersion getServerProtocolVersion()
      Returns:
      the server version before ViaVersion finishes initializing
    • getServerBindAddress

      public @NonNull String getServerBindAddress()
      Specified by:
      getServerBindAddress in interface org.geysermc.geyser.GeyserBootstrap
    • getServerPort

      public int getServerPort()
      Specified by:
      getServerPort in interface org.geysermc.geyser.GeyserBootstrap
    • testFloodgatePluginPresent

      public boolean testFloodgatePluginPresent()
      Specified by:
      testFloodgatePluginPresent in interface org.geysermc.geyser.GeyserBootstrap
    • getFloodgateKeyPath

      public Path getFloodgateKeyPath()
      Specified by:
      getFloodgateKeyPath in interface org.geysermc.geyser.GeyserBootstrap
    • createMetricsPlatform

      public org.geysermc.geyser.util.metrics.MetricsPlatform createMetricsPlatform()
      Specified by:
      createMetricsPlatform in interface org.geysermc.geyser.GeyserBootstrap