Class StargateBungeeManager

java.lang.Object
org.sgrewritten.stargate.manager.StargateBungeeManager
All Implemented Interfaces:
BungeeManager

public class StargateBungeeManager extends Object implements BungeeManager
  • Constructor Details

    • StargateBungeeManager

      public StargateBungeeManager(@NotNull @NotNull RegistryAPI registry, @NotNull @NotNull LanguageManager languageManager, @NotNull @NotNull NetworkManager networkManager)
      Parameters:
      registry -

      A registry containing all information about portals

      languageManager -

      A manager able to provide localized messages

      networkManager -

      A network manager

  • Method Details

    • updateNetwork

      public void updateNetwork(String message)
      Description copied from interface: BungeeManager
      Updates a network according to a "network changed" message
      Specified by:
      updateNetwork in interface BungeeManager
      Parameters:
      message -

      The network change message to parse and handle

    • playerConnect

      public void playerConnect(String message)
      Description copied from interface: BungeeManager
      Handles a player teleport message
      Specified by:
      playerConnect in interface BungeeManager
      Parameters:
      message -

      The player teleport message to parse and handle

    • legacyPlayerConnect

      public void legacyPlayerConnect(String message)
      Description copied from interface: BungeeManager
      Handle the connection of a player using the legacy Stargate method

      This is done to let servers on any of the old Stargate forks connect to this version.

      Specified by:
      legacyPlayerConnect in interface BungeeManager
      Parameters:
      message -

      The legacy connect message to parse and handle

    • pullFromQueue

      public Portal pullFromQueue(String playerName)
      Description copied from interface: BungeeManager
      Gets a portal from the BungeeCord teleportation queue
      Specified by:
      pullFromQueue in interface BungeeManager
      Parameters:
      playerName -

      The player to pull from the queue

      Returns:

      The portal the player should be teleported to