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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PluginMessageEvent.ForwardResultforward()static PluginMessageEvent.ForwardResulthandled()booleanisAllowed()Returns whether or not the event is allowed to proceed.StringtoString()
-
-
-
Method Detail
-
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
-
forward
public static PluginMessageEvent.ForwardResult forward()
-
handled
public static PluginMessageEvent.ForwardResult handled()
-
-