Interface LuckPermsMinestom.Builder
- Enclosing class:
LuckPermsMinestom
public static interface LuckPermsMinestom.Builder
-
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull LuckPermsMinestom.BuildercommandRegistry(@NotNull Consumer<net.minestom.server.command.builder.Command> register, @NotNull Consumer<net.minestom.server.command.builder.Command> unregister) Sets the command registry handler where LuckPerms commands should be registered.@NotNull LuckPermsMinestom.BuildercommandRegistry(@Nullable CommandRegistry handler) Sets the command registry handler where LuckPerms commands should be registered.default @NotNull LuckPermsMinestom.Buildercommands(boolean enabled) Deprecated.@NotNull LuckPermsMinestom.BuilderconfigurationAdapter(@NotNull Function<LPMinestomPlugin, me.lucko.luckperms.common.config.generic.adapter.ConfigurationAdapter> adapter) Sets the configuration adapter to use.@NotNull LuckPermsMinestom.BuildercontextProvider(@NotNull ContextProvider provider) Adds a context provider to the platform@NotNull LuckPermsMinestom.BuildercontextProviders(@NotNull Iterable<ContextProvider> providers) Adds a collection of context providers to the platform@NotNull LuckPermsMinestom.BuildercontextProviders(@NotNull ContextProvider... providers) Adds a collection of context providers to the platform@NotNull net.luckperms.api.LuckPermsenable()Enables LuckPerms@NotNull LuckPermsMinestom.Builderlogger(@NotNull org.slf4j.Logger logger) Sets the logger to use@NotNull LuckPermsMinestom.BuilderpermissionSuggestion(@NotNull String permission) Suggests a permission to be registered with the platform@NotNull LuckPermsMinestom.BuilderpermissionSuggestions(@NotNull Iterable<String> permissions) Suggests a collection of permissions to be registered with the platform@NotNull LuckPermsMinestom.BuilderpermissionSuggestions(@NotNull String... permissions) Suggests a collection of permissions to be registered with the platform
-
Method Details
-
commands
@Deprecated @Contract("_ -> this") @NotNull default @NotNull LuckPermsMinestom.Builder commands(boolean enabled) Deprecated.Sets whether the LuckPerms commands should be registered- Parameters:
enabled- if the commands should be registered- Returns:
- the builder instance
-
commandRegistry
@Contract("_ -> this") @NotNull @NotNull LuckPermsMinestom.Builder commandRegistry(@Nullable @Nullable CommandRegistry handler) Sets the command registry handler where LuckPerms commands should be registered. Provided constructors are:- Parameters:
handler- the command registry handler- Returns:
- the builder instance
-
commandRegistry
@Contract("_, _ -> this") @NotNull default @NotNull LuckPermsMinestom.Builder commandRegistry(@NotNull @NotNull Consumer<net.minestom.server.command.builder.Command> register, @NotNull @NotNull Consumer<net.minestom.server.command.builder.Command> unregister) Sets the command registry handler where LuckPerms commands should be registered. -
contextProvider
@Contract("_ -> this") @NotNull @NotNull LuckPermsMinestom.Builder contextProvider(@NotNull @NotNull ContextProvider provider) Adds a context provider to the platform- Parameters:
provider- the provider to add- Returns:
- the builder instance
-
contextProviders
@Contract("_ -> this") @NotNull @NotNull LuckPermsMinestom.Builder contextProviders(@NotNull @NotNull ContextProvider... providers) Adds a collection of context providers to the platform- Parameters:
providers- the providers to add- Returns:
- the builder instance
-
contextProviders
@Contract("_ -> this") @NotNull @NotNull LuckPermsMinestom.Builder contextProviders(@NotNull @NotNull Iterable<ContextProvider> providers) Adds a collection of context providers to the platform- Parameters:
providers- the providers to add- Returns:
- the builder instance
-
permissionSuggestion
@Contract("_ -> this") @NotNull @NotNull LuckPermsMinestom.Builder permissionSuggestion(@NotNull @NotNull String permission) Suggests a permission to be registered with the platform- Parameters:
permission- the permission to suggest- Returns:
- the builder instance
-
permissionSuggestions
@Contract("_ -> this") @NotNull @NotNull LuckPermsMinestom.Builder permissionSuggestions(@NotNull @NotNull String... permissions) Suggests a collection of permissions to be registered with the platform- Parameters:
permissions- the permissions to suggest- Returns:
- the builder instance
-
permissionSuggestions
@Contract("_ -> this") @NotNull @NotNull LuckPermsMinestom.Builder permissionSuggestions(@NotNull @NotNull Iterable<String> permissions) Suggests a collection of permissions to be registered with the platform- Parameters:
permissions- the permissions to suggest- Returns:
- the builder instance
-
configurationAdapter
@Contract("_ -> this") @NotNull @NotNull LuckPermsMinestom.Builder configurationAdapter(@NotNull @NotNull Function<LPMinestomPlugin, me.lucko.luckperms.common.config.generic.adapter.ConfigurationAdapter> adapter) Sets the configuration adapter to use. Provided options are:EnvironmentVariableConfigAdapterMultiConfigurationAdapterSystemPropertyConfigAdapterConfigurateConfigAdapter
- Parameters:
adapter- the adapter to use- Returns:
- the builder instance
-
logger
@Contract("_ -> this") @NotNull @NotNull LuckPermsMinestom.Builder logger(@NotNull @NotNull org.slf4j.Logger logger) Sets the logger to use- Parameters:
logger- the logger to use- Returns:
- the builder instance
-
enable
@NotNull @NotNull net.luckperms.api.LuckPerms enable()Enables LuckPerms- Returns:
- the LuckPerms instance
-
commandRegistry(CommandRegistry)