Package org.sgrewritten.stargate.manager
Class StargateBungeeManager
java.lang.Object
org.sgrewritten.stargate.manager.StargateBungeeManager
- All Implemented Interfaces:
BungeeManager
-
Constructor Summary
ConstructorsConstructorDescriptionStargateBungeeManager(@NotNull RegistryAPI registry, @NotNull LanguageManager languageManager, @NotNull NetworkManager networkManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidlegacyPlayerConnect(String message) Handle the connection of a player using the legacy Stargate methodvoidplayerConnect(String message) Handles a player teleport messagepullFromQueue(String playerName) Gets a portal from the BungeeCord teleportation queuevoidupdateNetwork(String message) Updates a network according to a "network changed" message
-
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
Description copied from interface:BungeeManagerUpdates a network according to a "network changed" message- Specified by:
updateNetworkin interfaceBungeeManager- Parameters:
message-The network change message to parse and handle
-
playerConnect
Description copied from interface:BungeeManagerHandles a player teleport message- Specified by:
playerConnectin interfaceBungeeManager- Parameters:
message-The player teleport message to parse and handle
-
legacyPlayerConnect
Description copied from interface:BungeeManagerHandle the connection of a player using the legacy Stargate methodThis is done to let servers on any of the old Stargate forks connect to this version.
- Specified by:
legacyPlayerConnectin interfaceBungeeManager- Parameters:
message-The legacy connect message to parse and handle
-
pullFromQueue
Description copied from interface:BungeeManagerGets a portal from the BungeeCord teleportation queue- Specified by:
pullFromQueuein interfaceBungeeManager- Parameters:
playerName-The player to pull from the queue
- Returns:
The portal the player should be teleported to
-