Package com.griefdefender.api.permission
Interface PermissionResult
public interface PermissionResult
-
Method Summary
Modifier and TypeMethodDescriptionOptional<net.kyori.adventure.text.Component> Gets the result message.Gets theof flag action.invalid reference
FlagResultTypedefault booleanA simple helper method to determine if theClaimResultwas a success.
-
Method Details
-
getResultType
ResultType getResultType()Gets theof flag action.invalid reference
FlagResultType- Returns:
- The result type
-
getMessage
Optional<net.kyori.adventure.text.Component> getMessage()Gets the result message. Note: normally this is set during event cancellations.- Returns:
- The result message, if available
-
successful
default boolean successful()A simple helper method to determine if theClaimResultwas a success.- Returns:
- Whether the claim result was a success
-