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
  • 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 interface GeyserBootstrap
      Specified by:
      onEnable in interface org.bukkit.plugin.Plugin
      Overrides:
      onEnable in class org.bukkit.plugin.java.JavaPlugin
    • onDisable

      public void onDisable()
      Description copied from interface: GeyserBootstrap
      Called when the GeyserBootstrap is disabled
      Specified by:
      onDisable in interface GeyserBootstrap
      Specified by:
      onDisable in interface org.bukkit.plugin.Plugin
      Overrides:
      onDisable in class org.bukkit.plugin.java.JavaPlugin
    • getGeyserConfig

      public GeyserSpigotConfiguration getGeyserConfig()
      Description copied from interface: GeyserBootstrap
      Returns the current GeyserConfiguration
      Specified by:
      getGeyserConfig in interface GeyserBootstrap
      Returns:
      The current GeyserConfiguration
    • getGeyserLogger

      public GeyserSpigotLogger getGeyserLogger()
      Description copied from interface: GeyserBootstrap
      Returns the current GeyserLogger
      Specified by:
      getGeyserLogger in interface GeyserBootstrap
      Returns:
      The current GeyserLogger
    • getGeyserCommandManager

      public CommandManager getGeyserCommandManager()
      Description copied from interface: GeyserBootstrap
      Returns the current CommandManager
      Specified by:
      getGeyserCommandManager in interface GeyserBootstrap
      Returns:
      The current CommandManager
    • getGeyserPingPassthrough

      public IGeyserPingPassthrough getGeyserPingPassthrough()
      Description copied from interface: GeyserBootstrap
      Returns the current PingPassthrough manager
      Specified by:
      getGeyserPingPassthrough in interface GeyserBootstrap
      Returns:
      The current PingPassthrough manager
    • getWorldManager

      public WorldManager getWorldManager()
      Description copied from interface: GeyserBootstrap
      Returns the current WorldManager
      Specified by:
      getWorldManager in interface GeyserBootstrap
      Returns:
      the current WorldManager
    • getConfigFolder

      public Path getConfigFolder()
      Description copied from interface: GeyserBootstrap
      Return the data folder where files get stored
      Specified by:
      getConfigFolder in interface GeyserBootstrap
      Returns:
      Path location of data folder
    • getDumpInfo

      public BootstrapDumpInfo getDumpInfo()
      Description copied from interface: GeyserBootstrap
      Information used for the bootstrap section of the debug dump
      Specified by:
      getDumpInfo in interface GeyserBootstrap
      Returns:
      The info about the bootstrap
    • getMinecraftServerVersion

      public String 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 before GeyserImpl initialization.
      Specified by:
      getMinecraftServerVersion in interface GeyserBootstrap
      Returns:
      the Minecraft version being used on the server, or null if not applicable
    • getSocketAddress

      public SocketAddress getSocketAddress()
      Specified by:
      getSocketAddress in interface GeyserBootstrap
    • isCompatible

      public boolean isCompatible(String version, String whichVersion)
    • getServerProtocolVersion

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