Interface MinimalInjector
public interface MinimalInjector
Represents an injector that only gives access to a player's socket.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddisconnect(String message) Attempt to disconnect the current client.Retrieve the associated address of this player.org.bukkit.entity.PlayerRetrieve the hooked player.booleanDetermines if the player is currently connected.voidsendServerPacket(Object packet, NetworkMarker marker, boolean filtered) Send a packet to the client.
-
Method Details
-
getAddress
SocketAddress getAddress()Retrieve the associated address of this player.- Returns:
- The associated address.
-
disconnect
Attempt to disconnect the current client.- Parameters:
message- - the message to display.
-
sendServerPacket
Send a packet to the client.- Parameters:
packet- - server packet to send.marker- - the network marker.filtered- - whether or not the packet will be filtered by our listeners.
-
getPlayer
org.bukkit.entity.Player getPlayer()Retrieve the hooked player.- Returns:
- The hooked player.
-
isConnected
boolean isConnected()Determines if the player is currently connected.- Returns:
- true if the player is connected.
-