Interface RemotePlayer
public interface RemotePlayer
RemotePlayer Layout Class
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidbroadcastMessage(String... messages) Sends messages to all playersstatic voidbroadcastMessage(String[] messages, IntConsumer response) Sends messages to all playersstatic voidbroadcastMessage(String message, IntConsumer response) Sends a message to all playersstatic voidbroadcastMessage(net.md_5.bungee.api.chat.BaseComponent... message) Sends a message to all playersstatic voidbroadcastMessage(net.md_5.bungee.api.chat.BaseComponent[]... messages) Sends messages to all playersstatic voidbroadcastMessage(net.md_5.bungee.api.chat.BaseComponent[][] messages, IntConsumer response) Sends messages to all playersstatic voidbroadcastMessage(net.md_5.bungee.api.chat.BaseComponent[] message, IntConsumer response) Sends a messages to all playersstatic voidbroadcastMessage(net.md_5.bungee.api.chat.BaseComponent message, IntConsumer response) Sends a message to all playersdefault voidDisconnects this player from the networkdefault voiddisconnect(String reason) Disconnects this player from the networkdefault voiddisconnect(String reason, IntConsumer response) Disconnects this player from the networkdefault voiddisconnect(IntConsumer response) Disconnects this player from the networkstatic voiddisconnect(UUID... players) Disconnects these players from the networkstatic voiddisconnect(UUID[] players, String reason) Disconnects these players from the networkstatic voiddisconnect(UUID[] players, String reason, IntConsumer response) Disconnects these players from the networkstatic voiddisconnect(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 voidsendMessage(String... messages) Sends messages to this playerdefault voidsendMessage(String[] messages, IntConsumer response) Sends messages to this playerdefault voidsendMessage(String message, IntConsumer response) Sends a message to this playerstatic voidsendMessage(UUID[] players, String... messages) Sends messages to these playersstatic voidsendMessage(UUID[] players, String[] messages, IntConsumer response) Sends messages to these playersstatic voidsendMessage(UUID[] players, String message, IntConsumer response) Sends a message to these playersstatic voidsendMessage(UUID[] players, net.md_5.bungee.api.chat.BaseComponent... message) Sends a message to these playersstatic voidsendMessage(UUID[] players, net.md_5.bungee.api.chat.BaseComponent[]... messages) Sends messages to these playersstatic voidsendMessage(UUID[] players, net.md_5.bungee.api.chat.BaseComponent[][] messages, IntConsumer response) Sends messages to these playersstatic voidsendMessage(UUID[] players, net.md_5.bungee.api.chat.BaseComponent[] message, IntConsumer response) Sends a message to these playersstatic voidsendMessage(UUID[] players, net.md_5.bungee.api.chat.BaseComponent message, IntConsumer response) Sends a message to these playersdefault voidsendMessage(net.md_5.bungee.api.chat.BaseComponent... message) Sends a message to this playerdefault voidsendMessage(net.md_5.bungee.api.chat.BaseComponent[]... messages) Sends messages to this playerdefault voidsendMessage(net.md_5.bungee.api.chat.BaseComponent[][] messages, IntConsumer response) Sends messages to this playerdefault voidsendMessage(net.md_5.bungee.api.chat.BaseComponent[] message, IntConsumer response) Sends a message to this playerdefault voidsendMessage(net.md_5.bungee.api.chat.BaseComponent message, IntConsumer response) Sends a message to this playerdefault voidTransfers this player to another serverdefault voidtransfer(String server, IntConsumer response) Transfers this player to another serverstatic voidTransfers these players to another serverstatic voidtransfer(UUID[] players, String server, IntConsumer response) Transfers these players to another serverstatic voidtransfer(UUID[] players, ServerInfo server) Transfers these players to another serverstatic voidtransfer(UUID[] players, ServerInfo server, IntConsumer response) Transfers these players to another serverdefault voidtransfer(ServerInfo server) Transfers this player to another serverdefault voidtransfer(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
-