public interface ProxiedPlayer extends Connection, CommandSender
Connection.Unsafe
Modifier and Type | Method and Description |
---|---|
void |
chat(String message)
Make this player chat (say something), to the server he is currently on.
|
void |
connect(ServerInfo target)
Connects / transfers this user to the specified connection, gracefully
closing the current one.
|
void |
connect(ServerInfo target,
Callback<Boolean> callback)
Connects / transfers this user to the specified connection, gracefully
closing the current one.
|
String |
getDisplayName()
Gets this player's display name.
|
Locale |
getLocale()
Gets this player's locale.
|
PendingConnection |
getPendingConnection()
Get the pending connection that belongs to this player.
|
int |
getPing()
Gets the ping time between the proxy and this connection.
|
ServerInfo |
getReconnectServer()
Get the server which this player will be sent to next time the log in.
|
Server |
getServer()
Gets the server this player is connected to.
|
UUID |
getUniqueId()
Get this connection's UUID, if set.
|
String |
getUUID()
Deprecated.
In favour of
getUniqueId() |
void |
sendData(String channel,
byte[] data)
Send a plugin message to this player.
|
void |
setDisplayName(String name)
Sets this players display name to be used as their nametag and tab list
name.
|
void |
setReconnectServer(ServerInfo server)
Set the server which this player will be sent to next time the log in.
|
disconnect, disconnect, disconnect, getAddress, unsafe
addGroups, getGroups, getName, getPermissions, hasPermission, removeGroups, sendMessage, sendMessage, sendMessage, sendMessages, setPermission
String getDisplayName()
void setDisplayName(String name)
name
- the name to setvoid connect(ServerInfo target)
target
- the new server to connect tovoid connect(ServerInfo target, Callback<Boolean> callback)
target
- the new server to connect tocallback
- the method called when the connection is complete, or
when an exception is encountered. The boolean parameter denotes success
or failure.Server getServer()
int getPing()
void sendData(String channel, byte[] data)
channel
- the channel to send this data viadata
- the data to sendPendingConnection getPendingConnection()
void chat(String message)
message
- the message to sayServerInfo getReconnectServer()
void setReconnectServer(ServerInfo server)
server
- the server to set@Deprecated String getUUID()
getUniqueId()
UUID getUniqueId()
Locale getLocale()
Copyright © 2012–2014 SpigotMC. All rights reserved.