Interface FailReasonHandler

  • All Known Implementing Classes:
    DefaultFailReasonHandler

    public interface FailReasonHandler
    Represents a FailReason handler, which will be applied on every command argument, if so no handling was applied.
    • Method Detail

      • handleFailReason

        void handleFailReason​(@NotNull
                              @NotNull CommandExecutionContext context,
                              @NotNull
                              @NotNull FailReason failReason,
                              @Nullable
                              @Nullable java.lang.String argument)
        Method which will be called to every argument fail reason.
        Parameters:
        context - command context
        failReason - fail reason
        argument - raw string argument, if present