Package com.velocitypowered.api.event
Class ResultedEvent.GenericResult
- java.lang.Object
-
- com.velocitypowered.api.event.ResultedEvent.GenericResult
-
- All Implemented Interfaces:
ResultedEvent.Result
- Enclosing interface:
- ResultedEvent<R extends ResultedEvent.Result>
public static final class ResultedEvent.GenericResult extends Object implements ResultedEvent.Result
A generic "allowed/denied" result.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResultedEvent.GenericResultallowed()static ResultedEvent.GenericResultdenied()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
-
allowed
public static ResultedEvent.GenericResult allowed()
-
denied
public static ResultedEvent.GenericResult denied()
-
-