public interface SocketInjector
| Modifier and Type | Method and Description |
|---|---|
void |
disconnect(String message)
Attempt to disconnect the current client.
|
SocketAddress |
getAddress()
Retrieve the associated address of this player.
|
org.bukkit.entity.Player |
getPlayer()
Retrieve the hooked player.
|
Socket |
getSocket()
Retrieve the associated socket of this player.
|
org.bukkit.entity.Player |
getUpdatedPlayer()
Retrieve the hooked player object OR the more up-to-date player instance.
|
void |
sendServerPacket(Object packet,
NetworkMarker marker,
boolean filtered)
Send a packet to the client.
|
void |
setUpdatedPlayer(org.bukkit.entity.Player updatedPlayer)
Set the real Bukkit player that we will use.
|
void |
transferState(SocketInjector delegate)
Invoked when a delegated socket injector transfers the state of one injector to the next.
|
Socket getSocket() throws IllegalAccessException
IllegalAccessException - If we're unable to read the socket field.SocketAddress getAddress() throws IllegalAccessException
IllegalAccessException - If we're unable to read the socket field.void disconnect(String message) throws InvocationTargetException
message - - the message to display.InvocationTargetException - If disconnection failed.void sendServerPacket(Object packet, NetworkMarker marker, boolean filtered) throws InvocationTargetException
packet - - server packet to send.marker - - the network marker.filtered - - whether or not the packet will be filtered by our listeners.InvocationTargetException - If an error occured when sending the packet.org.bukkit.entity.Player getPlayer()
org.bukkit.entity.Player getUpdatedPlayer()
void transferState(SocketInjector delegate)
delegate - - the new injector.void setUpdatedPlayer(org.bukkit.entity.Player updatedPlayer)
updatedPlayer - - the real Bukkit player.Copyright © 2012–2017 Comphenix and dmulloy2. Licensed under the GNU GPL v2.