Class GeyserConnector

java.lang.Object
org.geysermc.connector.GeyserConnector

public class GeyserConnector extends Object
  • Field Details

  • Method Details

    • shutdown

      public void shutdown()
    • getPlayerByUuid

      @Contract("null -> null") public GeyserSession getPlayerByUuid(UUID uuid)
      Gets a player by their current UUID
      Parameters:
      uuid - the uuid
      Returns:
      the player or null if there is no player online with this UUID
    • getPlayerByXuid

      public GeyserSession getPlayerByXuid(String xuid)
      Gets a player by their Xbox user identifier
      Parameters:
      xuid - the Xbox user identifier
      Returns:
      the player or null if there is no player online with this xuid
    • start

      public static GeyserConnector start(PlatformType platformType, GeyserBootstrap bootstrap)
    • reload

      public void reload()
    • getLogger

      public GeyserLogger getLogger()
    • getConfig

      public GeyserConfiguration getConfig()
    • getCommandManager

      public CommandManager getCommandManager()
    • getWorldManager

      public WorldManager getWorldManager()
    • getTimeSyncer

      public TimeSyncer getTimeSyncer()
    • isProductionEnvironment

      public boolean isProductionEnvironment()
      Returns false if this Geyser instance is running in an IDE. This only needs to be used in cases where files expected to be in a jarfile are not present.
      Returns:
      true if the version number is not 'DEV'.
    • getDefaultAuthType

      @Deprecated public AuthType getDefaultAuthType()
      Deprecated.
      Deprecated. Get the AuthType from the GeyserConfiguration through getConfig()
      Returns:
      The
    • getInstance

      public static GeyserConnector getInstance()