Class GeyserSpongePlugin
java.lang.Object
org.geysermc.geyser.platform.sponge.GeyserSpongePlugin
- All Implemented Interfaces:
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.dump.BootstrapDumpInfoorg.geysermc.geyser.command.GeyserCommandManagerorg.geysermc.geyser.ping.IGeyserPingPassthroughvoidonConstruction(org.spongepowered.api.event.lifecycle.ConstructPluginEvent event)Construct the configuration, logger, and command manager.voidvoidonEnable()Only to be used for reloadingvoidonEngineStopping(org.spongepowered.api.event.lifecycle.StoppingEngineEvent<org.spongepowered.api.Server> event)voidonRegisterCommands(org.spongepowered.api.event.lifecycle.RegisterCommandEvent<org.spongepowered.api.command.Command.Raw> event)Construct theGeyserSpongeCommandManagerand register the commandsvoidonStartedEngine(org.spongepowered.api.event.lifecycle.StartedEngineEvent<org.spongepowered.api.Server> event)Configure the config properly if remote address is auto.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.geysermc.geyser.GeyserBootstrap
getLogsPath, getResource, getResourceOrNull, getSavedUserLoginsFolder, getSocketAddress, getWorldManager
-
Constructor Details
-
GeyserSpongePlugin
public GeyserSpongePlugin()
-
-
Method Details
-
onEnable
public void onEnable()Only to be used for reloading- Specified by:
onEnablein interfaceorg.geysermc.geyser.GeyserBootstrap
-
onDisable
public void onDisable()- Specified by:
onDisablein interfaceorg.geysermc.geyser.GeyserBootstrap
-
onConstruction
public void onConstruction(@Nullable org.spongepowered.api.event.lifecycle.ConstructPluginEvent event)Construct the configuration, logger, and command manager. command manager will only be filled with commands once the connector is started, but it allows us to register events in sponge.- Parameters:
event- Not used.
-
onRegisterCommands
public void onRegisterCommands(@Nonnull org.spongepowered.api.event.lifecycle.RegisterCommandEvent<org.spongepowered.api.command.Command.Raw> event)Construct theGeyserSpongeCommandManagerand register the commands- Parameters:
event- required to register the commands
-
onStartedEngine
public void onStartedEngine(@Nullable org.spongepowered.api.event.lifecycle.StartedEngineEvent<org.spongepowered.api.Server> event)Configure the config properly if remote address is auto. Start connector and ping passthrough, and register subcommands of /geyser- Parameters:
event- not required
-
onEngineStopping
public void onEngineStopping(org.spongepowered.api.event.lifecycle.StoppingEngineEvent<org.spongepowered.api.Server> event) -
getGeyserConfig
- Specified by:
getGeyserConfigin interfaceorg.geysermc.geyser.GeyserBootstrap
-
getGeyserLogger
- Specified by:
getGeyserLoggerin interfaceorg.geysermc.geyser.GeyserBootstrap
-
getGeyserCommandManager
public org.geysermc.geyser.command.GeyserCommandManager getGeyserCommandManager()- Specified by:
getGeyserCommandManagerin interfaceorg.geysermc.geyser.GeyserBootstrap
-
getGeyserPingPassthrough
public org.geysermc.geyser.ping.IGeyserPingPassthrough getGeyserPingPassthrough()- Specified by:
getGeyserPingPassthroughin 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
-