Class PlatformPlayerManager
java.lang.Object
eu.cloudnetservice.modules.bridge.platform.PlatformPlayerManager
- All Implemented Interfaces:
PlayerManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PlayerProviderprivate final PlayerExecutorprivate final eu.cloudnetservice.driver.network.rpc.factory.RPCImplementationBuilder.InstanceAllocator<? extends PlayerExecutor> private final eu.cloudnetservice.driver.network.rpc.factory.RPCImplementationBuilder.InstanceAllocator<PlayerProvider> private final eu.cloudnetservice.driver.network.rpc.RPCSender -
Constructor Summary
ConstructorsConstructorDescriptionPlatformPlayerManager(@NonNull eu.cloudnetservice.driver.network.rpc.RPCSender sender, @NonNull Supplier<eu.cloudnetservice.driver.network.NetworkChannel> channelSupplier) -
Method Summary
Modifier and TypeMethodDescriptionGets the jvm static player executor for all players that are connected to the network.groupOnlinePlayers(@NonNull String group) Gets a player provider that provides access to all players that are connected to a service with the group with the given name.Gets a player provider that provides access to all players that are connected to the cloudnet network.playerExecutor(@NonNull UUID uniqueId) Creates a new player executor for the player associated with the given unique id.taskOnlinePlayers(@NonNull String task) Gets a player provider that provides access to all players that are connected to a service of the task with the given name.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface eu.cloudnetservice.modules.bridge.player.PlayerManager
deleteCloudOfflinePlayer, deleteCloudOfflinePlayerAsync, environmentOnlinePlayers, firstOfflinePlayer, firstOfflinePlayerAsync, firstOnlinePlayer, firstOnlinePlayerAsync, offlinePlayer, offlinePlayerAsync, offlinePlayerAsync, offlinePlayers, onlineCount, onlineCountAsync, onlinePlayer, onlinePlayerAsync, onlinePlayerAsync, onlinePlayerAsync, onlinePlayers, registeredCount, registeredCountAsync, registeredPlayers, updateOfflinePlayer, updateOfflinePlayerAsync, updateOnlinePlayer, updateOnlinePlayerAsync
-
Field Details
-
sender
private final eu.cloudnetservice.driver.network.rpc.RPCSender sender -
playerProviderAllocator
private final eu.cloudnetservice.driver.network.rpc.factory.RPCImplementationBuilder.InstanceAllocator<PlayerProvider> playerProviderAllocator -
playerExecutorAllocator
private final eu.cloudnetservice.driver.network.rpc.factory.RPCImplementationBuilder.InstanceAllocator<? extends PlayerExecutor> playerExecutorAllocator -
allPlayers
-
globalPlayerExecutor
-
-
Constructor Details
-
PlatformPlayerManager
-
-
Method Details
-
onlinePlayers
Description copied from interface:PlayerManagerGets a player provider that provides access to all players that are connected to the cloudnet network.- Specified by:
onlinePlayersin interfacePlayerManager- Returns:
- the player provider for all online players.
-
taskOnlinePlayers
Description copied from interface:PlayerManagerGets a player provider that provides access to all players that are connected to a service of the task with the given name.- Specified by:
taskOnlinePlayersin interfacePlayerManager- Parameters:
task- the task of the service the player has to be connected to.- Returns:
- the player provider for the given task.
-
groupOnlinePlayers
Description copied from interface:PlayerManagerGets a player provider that provides access to all players that are connected to a service with the group with the given name.- Specified by:
groupOnlinePlayersin interfacePlayerManager- Parameters:
group- the group of the service the player has to be connected to.- Returns:
- the player provider for the given group.
-
globalPlayerExecutor
Description copied from interface:PlayerManagerGets the jvm static player executor for all players that are connected to the network. All methods account for all connected players.- Specified by:
globalPlayerExecutorin interfacePlayerManager- Returns:
- the global player executor for all players.
-
playerExecutor
Description copied from interface:PlayerManagerCreates a new player executor for the player associated with the given unique id. The player executor is created even if there is no online player with the given unique id.- Specified by:
playerExecutorin interfacePlayerManager- Parameters:
uniqueId- the unique id of the player for the new player executor.- Returns:
- the player executor for the given player.
-