Class DefaultPlayerExecutor
- java.lang.Object
-
- de.dytanic.cloudnet.ext.bridge.player.executor.DefaultPlayerExecutor
-
- All Implemented Interfaces:
PlayerExecutor
public class DefaultPlayerExecutor extends java.lang.Object implements PlayerExecutor
-
-
Constructor Summary
Constructors Constructor Description DefaultPlayerExecutor(@NotNull java.util.UUID uniqueId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconnect(@NotNull java.lang.String serviceName)Connects an online player to a specific service.@NotNull java.util.UUIDgetPlayerUniqueId()Gets the uniqueId of the player this player executor handles.voidkick(@NotNull java.lang.String message)Kicks an online player from the network with a specific reason.voidsendChatMessage(@NotNull java.lang.String message)Sends a plugin message to a specific online player.voidsendPluginMessage(@NotNull java.lang.String tag, @org.jetbrains.annotations.NotNull byte[] data)Sends a message to a specific online player.
-
-
-
Method Detail
-
getPlayerUniqueId
@NotNull public @NotNull java.util.UUID getPlayerUniqueId()
Description copied from interface:PlayerExecutorGets the uniqueId of the player this player executor handles.- Specified by:
getPlayerUniqueIdin interfacePlayerExecutor- Returns:
- the UUID of the player
-
connect
public void connect(@NotNull @NotNull java.lang.String serviceName)Description copied from interface:PlayerExecutorConnects an online player to a specific service.- Specified by:
connectin interfacePlayerExecutor- Parameters:
serviceName- the name of the service the player should be sent to
-
kick
public void kick(@NotNull @NotNull java.lang.String message)Description copied from interface:PlayerExecutorKicks an online player from the network with a specific reason.- Specified by:
kickin interfacePlayerExecutor- Parameters:
message- the reason for the kick which will be displayed in the players client
-
sendChatMessage
public void sendChatMessage(@NotNull @NotNull java.lang.String message)Description copied from interface:PlayerExecutorSends a plugin message to a specific online player.- Specified by:
sendChatMessagein interfacePlayerExecutor- Parameters:
message- the message to be sent to the player
-
sendPluginMessage
public void sendPluginMessage(@NotNull @NotNull java.lang.String tag, @NotNull @org.jetbrains.annotations.NotNull byte[] data)Description copied from interface:PlayerExecutorSends a message to a specific online player. The tag has to be registered in the proxy.- Specified by:
sendPluginMessagein interfacePlayerExecutor- Parameters:
tag- the tag of the plugin messagedata- the data of the plugin message
-
-