Interface RemotePlayer
- All Known Implementing Classes:
CachedPlayer
public interface RemotePlayer
RemotePlayer Layout Class
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
broadcastMessage
(String... messages) Sends messages to all playersstatic void
broadcastMessage
(String[] messages, IntConsumer response) Sends messages to all playersstatic void
broadcastMessage
(String message, IntConsumer response) Sends a message to all playersstatic void
broadcastMessage
(net.md_5.bungee.api.chat.BaseComponent... message) Sends a message to all playersstatic void
broadcastMessage
(net.md_5.bungee.api.chat.BaseComponent[]... messages) Sends messages to all playersstatic void
broadcastMessage
(net.md_5.bungee.api.chat.BaseComponent[][] messages, IntConsumer response) Sends messages to all playersstatic void
broadcastMessage
(net.md_5.bungee.api.chat.BaseComponent[] message, IntConsumer response) Sends a messages to all playersstatic void
broadcastMessage
(net.md_5.bungee.api.chat.BaseComponent message, IntConsumer response) Sends a message to all playersdefault void
Disconnects this player from the networkdefault void
disconnect
(String reason) Disconnects this player from the networkdefault void
disconnect
(String reason, IntConsumer response) Disconnects this player from the networkdefault void
disconnect
(IntConsumer response) Disconnects this player from the networkstatic void
disconnect
(UUID... players) Disconnects these players from the networkstatic void
disconnect
(UUID[] players, String reason) Disconnects these players from the networkstatic void
disconnect
(UUID[] players, String reason, IntConsumer response) Disconnects these players from the networkstatic void
disconnect
(UUID[] players, IntConsumer response) Disconnects these players from the networkget()
Get Local PlayerGets the remote address of this connection.getName()
Get the unique name of this player.Gets the name of the proxy this player is connected to.Gets the server this player is connected to.Gets the name of the server this player is connected to.Get the UUID of this player.default void
sendMessage
(String... messages) Sends messages to this playerdefault void
sendMessage
(String[] messages, IntConsumer response) Sends messages to this playerdefault void
sendMessage
(String message, IntConsumer response) Sends a message to this playerstatic void
sendMessage
(UUID[] players, String... messages) Sends messages to these playersstatic void
sendMessage
(UUID[] players, String[] messages, IntConsumer response) Sends messages to these playersstatic void
sendMessage
(UUID[] players, String message, IntConsumer response) Sends a message to these playersstatic void
sendMessage
(UUID[] players, net.md_5.bungee.api.chat.BaseComponent... message) Sends a message to these playersstatic void
sendMessage
(UUID[] players, net.md_5.bungee.api.chat.BaseComponent[]... messages) Sends messages to these playersstatic void
sendMessage
(UUID[] players, net.md_5.bungee.api.chat.BaseComponent[][] messages, IntConsumer response) Sends messages to these playersstatic void
sendMessage
(UUID[] players, net.md_5.bungee.api.chat.BaseComponent[] message, IntConsumer response) Sends a message to these playersstatic void
sendMessage
(UUID[] players, net.md_5.bungee.api.chat.BaseComponent message, IntConsumer response) Sends a message to these playersdefault void
sendMessage
(net.md_5.bungee.api.chat.BaseComponent... message) Sends a message to this playerdefault void
sendMessage
(net.md_5.bungee.api.chat.BaseComponent[]... messages) Sends messages to this playerdefault void
sendMessage
(net.md_5.bungee.api.chat.BaseComponent[][] messages, IntConsumer response) Sends messages to this playerdefault void
sendMessage
(net.md_5.bungee.api.chat.BaseComponent[] message, IntConsumer response) Sends a message to this playerdefault void
sendMessage
(net.md_5.bungee.api.chat.BaseComponent message, IntConsumer response) Sends a message to this playerdefault void
Transfers this player to another serverdefault void
transfer
(String server, IntConsumer response) Transfers this player to another serverstatic void
Transfers these players to another serverstatic void
transfer
(UUID[] players, String server, IntConsumer response) Transfers these players to another serverstatic void
transfer
(UUID[] players, ServerInfo server) Transfers these players to another serverstatic void
transfer
(UUID[] players, ServerInfo server, IntConsumer response) Transfers these players to another serverdefault void
transfer
(ServerInfo server) Transfers this player to another serverdefault void
transfer
(ServerInfo server, IntConsumer response) Transfers this player to another server
-
Method Details
-
get
ProxiedPlayer get()Get Local Player- Returns:
- Local Player (or null when not local)
-
getUniqueId
UUID getUniqueId()Get the UUID of this player.- Returns:
- the UUID
-
getName
String getName()Get the unique name of this player.- Returns:
- the player's username
-
getAddress
InetSocketAddress getAddress()Gets the remote address of this connection.- Returns:
- the remote address
-
getProxyName
String getProxyName()Gets the name of the proxy this player is connected to.- Returns:
- the name of the proxy this player is connected to
-
getServerName
String getServerName()Gets the name of the server this player is connected to.- Returns:
- the name of the server this player is connected to
-
getServer
ServerInfo getServer()Gets the server this player is connected to.- Returns:
- the server this player is connected to
-
broadcastMessage
Sends messages to all players- Parameters:
messages
- Messages to send
-
broadcastMessage
Sends a message to all players- Parameters:
message
- Message to sendresponse
- Success Status
-
broadcastMessage
Sends messages to all players- Parameters:
messages
- Messages to sendresponse
- Success Status
-
sendMessage
Sends messages to this player- Parameters:
messages
- Messages to send
-
sendMessage
Sends a message to this player- Parameters:
message
- Message to sendresponse
- Success Status
-
sendMessage
Sends messages to this player- Parameters:
messages
- Messages to sendresponse
- Success Status
-
sendMessage
Sends messages to these players- Parameters:
players
- Players to selectmessages
- Messages to send
-
sendMessage
Sends a message to these players- Parameters:
players
- Players to selectmessage
- Message to sendresponse
- Success Status
-
sendMessage
Sends messages to these players- Parameters:
players
- Players to selectmessages
- Messages to sendresponse
- Success Status
-
broadcastMessage
static void broadcastMessage(net.md_5.bungee.api.chat.BaseComponent... message) Sends a message to all players- Parameters:
message
- Message to send
-
broadcastMessage
Sends a message to all players- Parameters:
message
- Message to sendresponse
- Success Status
-
broadcastMessage
static void broadcastMessage(net.md_5.bungee.api.chat.BaseComponent[] message, IntConsumer response) Sends a messages to all players- Parameters:
message
- Message to sendresponse
- Success Status
-
broadcastMessage
static void broadcastMessage(net.md_5.bungee.api.chat.BaseComponent[]... messages) Sends messages to all players- Parameters:
messages
- Messages to send
-
broadcastMessage
static void broadcastMessage(net.md_5.bungee.api.chat.BaseComponent[][] messages, IntConsumer response) Sends messages to all players- Parameters:
messages
- Messages to sendresponse
- Success Status
-
sendMessage
default void sendMessage(net.md_5.bungee.api.chat.BaseComponent... message) Sends a message to this player- Parameters:
message
- Message to send
-
sendMessage
Sends a message to this player- Parameters:
message
- Message to sendresponse
- Success Status
-
sendMessage
Sends a message to this player- Parameters:
message
- Message to sendresponse
- Success Status
-
sendMessage
default void sendMessage(net.md_5.bungee.api.chat.BaseComponent[]... messages) Sends messages to this player- Parameters:
messages
- Messages to send
-
sendMessage
Sends messages to this player- Parameters:
messages
- Messages to sendresponse
- Success Status
-
sendMessage
Sends a message to these players- Parameters:
players
- Players to selectmessage
- Message to send
-
sendMessage
static void sendMessage(UUID[] players, net.md_5.bungee.api.chat.BaseComponent message, IntConsumer response) Sends a message to these players- Parameters:
players
- Players to selectmessage
- Message to sendresponse
- Success Status
-
sendMessage
static void sendMessage(UUID[] players, net.md_5.bungee.api.chat.BaseComponent[] message, IntConsumer response) Sends a message to these players- Parameters:
players
- Players to selectmessage
- Message to sendresponse
- Success Status
-
sendMessage
Sends messages to these players- Parameters:
players
- Players to selectmessages
- Messages to send
-
sendMessage
static void sendMessage(UUID[] players, net.md_5.bungee.api.chat.BaseComponent[][] messages, IntConsumer response) Sends messages to these players- Parameters:
players
- Players to selectmessages
- Message to sendresponse
- Success Status
-
transfer
Transfers this player to another server- Parameters:
server
- Target server
-
transfer
Transfers this player to another server- Parameters:
server
- Target serverresponse
- Success status
-
transfer
Transfers these players to another server- Parameters:
players
- Players to selectserver
- Target server
-
transfer
Transfers these players to another server- Parameters:
players
- Players to selectserver
- Target serverresponse
- Success status
-
transfer
Transfers this player to another server- Parameters:
server
- Target server
-
transfer
Transfers this player to another server- Parameters:
server
- Target serverresponse
- Success status
-
transfer
Transfers these players to another server- Parameters:
players
- Players to selectserver
- Target server
-
transfer
Transfers these players to another server- Parameters:
players
- Players to selectserver
- Target serverresponse
- Success status
-
disconnect
default void disconnect()Disconnects this player from the network -
disconnect
Disconnects this player from the network- Parameters:
response
- Success status
-
disconnect
Disconnects this player from the network- Parameters:
reason
- Disconnect Reason
-
disconnect
Disconnects this player from the network- Parameters:
reason
- Disconnect Reasonresponse
- Success status
-
disconnect
Disconnects these players from the network- Parameters:
players
- Players to select
-
disconnect
Disconnects these players from the network- Parameters:
players
- Players to selectresponse
- Success status
-
disconnect
Disconnects these players from the network- Parameters:
players
- Players to selectreason
- Disconnect Reason
-
disconnect
Disconnects these players from the network- Parameters:
players
- Players to selectreason
- Disconnect Reasonresponse
- Success status
-