common / me.schlaubi.regnumutils.command / CommandClientBuilder / enableOwnerPermissions

enableOwnerPermissions

@NotNull open fun enableOwnerPermissions(ownerPermission: Boolean): @NotNull CommandClientBuilder

Sets whether the owner should be allowed to execute all commands or not.

Parameters

ownerPermission - Boolean: whether the owner should be allowed to execute all commands or not.

Exceptions

IllegalStateException - if the stored CommandClientConfiguration is a me.schlaubi.regnumutils.command.configuration.ImmutableCommandClientConfiguration

Return
CommandClientBuilder: the CommandClientBuilder

See Also
CommandClientConfiguration#getAcceptMentionPrefix()