Class RemotePlayer
java.lang.Object
net.ME1312.SubServers.Bungee.Host.RemotePlayer
- All Implemented Interfaces:
SubDataSerializable,RemotePlayer
Remote Player Class
-
Constructor Summary
ConstructorsConstructorDescriptionRemotePlayer(String name, UUID id, Proxy proxy, ServerInfo server, InetSocketAddress ip) Search for a Remote Player using their IDRemotePlayer(ProxiedPlayer player) Translate a Local Player to a Remote PlayerRemotePlayer(ProxiedPlayer player, ServerInfo server) Translate a Local Player to a Remote Player -
Method Summary
Modifier and TypeMethodDescriptionstatic voidbroadcastMessage(String... messages) Sends messages to all playersstatic voidbroadcastMessage(String[] messages, IntConsumer response) Sends a message 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 a message to all playersstatic voidbroadcastMessage(net.md_5.bungee.api.chat.BaseComponent[][] messages, IntConsumer response) Sends a message to all playersstatic voidbroadcastMessage(net.md_5.bungee.api.chat.BaseComponent[] message, IntConsumer response) Sends a message to all playersstatic voidbroadcastMessage(net.md_5.bungee.api.chat.BaseComponent message, IntConsumer response) Sends a message to all playersstatic 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 networkbooleanget()Get Local PlayerGets the remote address of this connection.getName()Get the unique name of this player.getProxy()Gets the proxy this player is connected to.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.static voidsendMessage(UUID[] players, String... messages) Sends messages to these playersstatic voidsendMessage(UUID[] players, String[] messages, IntConsumer response) Sends a message 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 a message to these playersstatic voidsendMessage(UUID[] players, net.md_5.bungee.api.chat.BaseComponent[][] messages, 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 playersstatic voidsendMessage(UUID[] players, net.md_5.bungee.api.chat.BaseComponent message, IntConsumer response) Sends a message to these playersstatic 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 serverMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.ME1312.SubServers.Bungee.Library.Compatibility.RemotePlayer
disconnect, disconnect, disconnect, disconnect, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, transfer, transfer, transfer, transfer
-
Constructor Details
-
RemotePlayer
Translate a Local Player to a Remote Player- Parameters:
player- Local Player
-
RemotePlayer
Translate a Local Player to a Remote Player- Parameters:
player- Local Playerserver- Server the player is on
-
RemotePlayer
Search for a Remote Player using their ID- Parameters:
name- Player Nameid- Player UUIDproxy- Proxy the player is onserver- Server the player is onip- Player IP Address
-
-
Method Details
-
get
Description copied from interface:RemotePlayerGet Local Player- Specified by:
getin interfaceRemotePlayer- Returns:
- Local Player (or null when not local)
-
getUniqueId
Description copied from interface:RemotePlayerGet the UUID of this player.- Specified by:
getUniqueIdin interfaceRemotePlayer- Returns:
- the UUID
-
getName
Description copied from interface:RemotePlayerGet the unique name of this player.- Specified by:
getNamein interfaceRemotePlayer- Returns:
- the player's username
-
getAddress
Description copied from interface:RemotePlayerGets the remote address of this connection.- Specified by:
getAddressin interfaceRemotePlayer- Returns:
- the remote address
-
getProxy
Gets the proxy this player is connected to.- Returns:
- the proxy this player is connected to
-
getProxyName
Description copied from interface:RemotePlayerGets the name of the proxy this player is connected to.- Specified by:
getProxyNamein interfaceRemotePlayer- Returns:
- the name of the proxy this player is connected to
-
getServer
Description copied from interface:RemotePlayerGets the server this player is connected to.- Specified by:
getServerin interfaceRemotePlayer- Returns:
- the server this player is connected to
-
getServerName
Description copied from interface:RemotePlayerGets the name of the server this player is connected to.- Specified by:
getServerNamein interfaceRemotePlayer- Returns:
- the name of the server this player is connected to
-
equals
-
forSubData
- Specified by:
forSubDatain interfaceSubDataSerializable
-
broadcastMessage
Description copied from interface:RemotePlayerSends messages to all players- Parameters:
messages- Messages to send
-
broadcastMessage
Description copied from interface:RemotePlayerSends a message to all players- Parameters:
message- Message to sendresponse- Success Status
-
broadcastMessage
Description copied from interface:RemotePlayerSends a message to all players- Parameters:
messages- Message to sendresponse- Success Status
-
sendMessage
Description copied from interface:RemotePlayerSends messages to these players- Parameters:
players- Players to selectmessages- Messages to send
-
sendMessage
Description copied from interface:RemotePlayerSends a message to these players- Parameters:
players- Players to selectmessage- Message to sendresponse- Success Status
-
sendMessage
Description copied from interface:RemotePlayerSends a message to these players- Parameters:
players- Players to selectmessages- Message to sendresponse- Success Status
-
broadcastMessage
public static void broadcastMessage(net.md_5.bungee.api.chat.BaseComponent... message) Description copied from interface:RemotePlayerSends a message to all players- Parameters:
message- Message to send
-
broadcastMessage
public static void broadcastMessage(net.md_5.bungee.api.chat.BaseComponent message, IntConsumer response) Description copied from interface:RemotePlayerSends a message to all players- Parameters:
message- Message to sendresponse- Success Status
-
broadcastMessage
public static void broadcastMessage(net.md_5.bungee.api.chat.BaseComponent[] message, IntConsumer response) Description copied from interface:RemotePlayerSends a message to all players- Parameters:
message- Message to sendresponse- Success Status
-
broadcastMessage
public static void broadcastMessage(net.md_5.bungee.api.chat.BaseComponent[]... messages) Description copied from interface:RemotePlayerSends a message to all players- Parameters:
messages- Message to send
-
broadcastMessage
public static void broadcastMessage(net.md_5.bungee.api.chat.BaseComponent[][] messages, IntConsumer response) Description copied from interface:RemotePlayerSends a message to all players- Parameters:
messages- Message to sendresponse- Success Status
-
sendMessage
Description copied from interface:RemotePlayerSends a message to these players- Parameters:
players- Players to selectmessage- Message to send
-
sendMessage
public static void sendMessage(UUID[] players, net.md_5.bungee.api.chat.BaseComponent message, IntConsumer response) Description copied from interface:RemotePlayerSends a message to these players- Parameters:
players- Players to selectmessage- Message to sendresponse- Success Status
-
sendMessage
public static void sendMessage(UUID[] players, net.md_5.bungee.api.chat.BaseComponent[] message, IntConsumer response) Description copied from interface:RemotePlayerSends a message to these players- Parameters:
players- Players to selectmessage- Message to sendresponse- Success Status
-
sendMessage
public static void sendMessage(UUID[] players, net.md_5.bungee.api.chat.BaseComponent[]... messages) Description copied from interface:RemotePlayerSends a message to these players- Parameters:
players- Players to selectmessages- Message to send
-
sendMessage
public static void sendMessage(UUID[] players, net.md_5.bungee.api.chat.BaseComponent[][] messages, IntConsumer response) Description copied from interface:RemotePlayerSends a message to these players- Parameters:
players- Players to selectmessages- Message to sendresponse- Success Status
-
transfer
Description copied from interface:RemotePlayerTransfers these players to another server- Parameters:
players- Players to selectserver- Target server
-
transfer
Description copied from interface:RemotePlayerTransfers these players to another server- Parameters:
players- Players to selectserver- Target serverresponse- Success status
-
transfer
Description copied from interface:RemotePlayerTransfers these players to another server- Parameters:
players- Players to selectserver- Target server
-
transfer
Description copied from interface:RemotePlayerTransfers these players to another server- Parameters:
players- Players to selectserver- Target serverresponse- Success status
-
disconnect
Description copied from interface:RemotePlayerDisconnects these players from the network- Parameters:
players- Players to select
-
disconnect
Description copied from interface:RemotePlayerDisconnects these players from the network- Parameters:
players- Players to selectresponse- Success status
-
disconnect
Description copied from interface:RemotePlayerDisconnects these players from the network- Parameters:
players- Players to selectreason- Disconnect Reason
-
disconnect
Description copied from interface:RemotePlayerDisconnects these players from the network- Parameters:
players- Players to selectreason- Disconnect Reasonresponse- Success status
-