Package org.sgrewritten.stargate.manager
Class StargateBungeeManager
java.lang.Object
org.sgrewritten.stargate.manager.StargateBungeeManager
- All Implemented Interfaces:
BungeeManager
-
Constructor Summary
ConstructorDescriptionStargateBungeeManager
(@NotNull RegistryAPI registry, @NotNull LanguageManager languageManager, @NotNull NetworkManager networkManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
legacyPlayerConnect
(String message) Handle the connection of a player using the legacy Stargate methodvoid
playerConnect
(String message) Handles a player teleport messagepullFromQueue
(String playerName) Gets a portal from the BungeeCord teleportation queuevoid
updateNetwork
(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:BungeeManager
Updates a network according to a "network changed" message- Specified by:
updateNetwork
in interfaceBungeeManager
- Parameters:
message
-The network change message to parse and handle
-
playerConnect
Description copied from interface:BungeeManager
Handles a player teleport message- Specified by:
playerConnect
in interfaceBungeeManager
- Parameters:
message
-The player teleport message to parse and handle
-
legacyPlayerConnect
Description copied from interface:BungeeManager
Handle 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:
legacyPlayerConnect
in interfaceBungeeManager
- Parameters:
message
-The legacy connect message to parse and handle
-
pullFromQueue
Description copied from interface:BungeeManager
Gets a portal from the BungeeCord teleportation queue- Specified by:
pullFromQueue
in interfaceBungeeManager
- Parameters:
playerName
-The player to pull from the queue
- Returns:
The portal the player should be teleported to
-