Class PluginMessageEvent.ForwardResult
java.lang.Object
com.velocitypowered.api.event.connection.PluginMessageEvent.ForwardResult
- All Implemented Interfaces:
ResultedEvent.Result
- Enclosing class:
PluginMessageEvent
public static final class PluginMessageEvent.ForwardResult
extends Object
implements ResultedEvent.Result
A result determining whether or not to forward this message on.
-
Method Details
-
isAllowed
public boolean isAllowed()Description copied from interface:ResultedEvent.ResultReturns whether or not the event is allowed to proceed. Plugins may choose to skip denied events, and the proxy will respect the result of this method.- Specified by:
isAllowedin interfaceResultedEvent.Result- Returns:
- whether or not the event is allowed to proceed
-
toString
-
forward
Returns a result that forwards the plugin message to the target.- Returns:
- the forward result
-
handled
Returns a result that marks the plugin message as handled at the proxy. This prevents it from being forwarded.- Returns:
- the handled result
-