Interface Proxy
public interface Proxy
One way of talking to the other servers in a network, such as a plugin-message channel or Redis.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanisEnable()Whether this transport is turned on in the config and ready to use.voidCloses the connection or unregisters the channel.voidonEnable()Opens the connection or registers the channel.booleansendMessage(@NonNull FEntity sender, @NonNull ModuleName tag, byte @NonNull [] message) Sends an encoded message to the other servers.
-
Field Details
-
CHANNEL
The plugin-message channel identifier used for BungeeCord / Velocity communication between the proxy and all backend servers.- See Also:
-
-
Method Details
-
isEnable
boolean isEnable()Whether this transport is turned on in the config and ready to use.- Returns:
- true if it can carry messages
-
onEnable
void onEnable()Opens the connection or registers the channel. -
onDisable
void onDisable()Closes the connection or unregisters the channel. -
sendMessage
Sends an encoded message to the other servers.- Parameters:
sender- the entity the message is fromtag- the module the message belongs tomessage- the encoded payload- Returns:
- true if it was handed to the transport
-