Class BooleanArgument<C>

    • Method Detail

      • of

        public static <C> @NonNull CommandArgument<C,​Booleanof​(@NonNull String name)
        Create a new required command argument
        Type Parameters:
        C - Command sender type
        Parameters:
        name - Argument name
        Returns:
        Created argument
      • optional

        public static <C> @NonNull CommandArgument<C,​Booleanoptional​(@NonNull String name,
                                                                             boolean defaultBoolean)
        Create a new required command argument with a default value
        Type Parameters:
        C - Command sender type
        Parameters:
        name - Argument name
        defaultBoolean - Default num
        Returns:
        Created argument
      • isLiberal

        public boolean isLiberal()
        Get the liberal boolean
        Returns:
        Liberal boolean