Class GeyserSpongePlugin

java.lang.Object
org.geysermc.geyser.platform.sponge.GeyserSpongePlugin
All Implemented Interfaces:
GeyserBootstrap

public class GeyserSpongePlugin extends Object implements GeyserBootstrap
  • Constructor Details

    • GeyserSpongePlugin

      public GeyserSpongePlugin()
  • Method Details

    • onEnable

      public void onEnable()
      Description copied from interface: GeyserBootstrap
      Called when the GeyserBootstrap is enabled
      Specified by:
      onEnable in interface GeyserBootstrap
    • onDisable

      public void onDisable()
      Description copied from interface: GeyserBootstrap
      Called when the GeyserBootstrap is disabled
      Specified by:
      onDisable in interface GeyserBootstrap
    • getGeyserConfig

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

      public GeyserSpongeLogger 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
    • 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
    • onServerStart

      public void onServerStart(org.spongepowered.api.event.game.state.GameStartedServerEvent event)
    • onServerStop

      public void onServerStop(org.spongepowered.api.event.game.state.GameStoppedEvent event)
    • 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