public interface Player extends CommandSender
| Modifier and Type | Method and Description |
|---|---|
void |
connect(RemoteServer remoteServer)
Connects the player to the remote server
|
void |
disconnect(String reason)
Disconnect the player for the specified reason
|
AuthData |
getAuthenticationData()
Returns the authentication data of the player.
|
InetSocketAddress |
getSocketAddress()
Returns the current hostname and port the player is connected with.
|
void |
sendForm(FormWindow window)
Sends a form window
|
void |
sendForm(FormWindow window,
int id)
Sends a form window with the given ID
|
getName, sendMessage, sendMessagevoid connect(RemoteServer remoteServer)
remoteServer - the remote server to connect tovoid disconnect(String reason)
reason - the reason to disconnect the player forAuthData getAuthenticationData()
void sendForm(FormWindow window)
window - the window form to sendvoid sendForm(FormWindow window, int id)
window - the window to sendid - the id of the windowInetSocketAddress getSocketAddress()
Copyright © 2020 GeyserMC. All rights reserved.