| Package | Description |
|---|---|
| me.lucko.helper | |
| me.lucko.helper.command.functional |
| Modifier and Type | Method and Description |
|---|---|
static FunctionalCommandBuilder<org.bukkit.command.CommandSender> |
Commands.create()
Creates and returns a new command builder
|
| Modifier and Type | Method and Description |
|---|---|
default FunctionalCommandBuilder<T> |
FunctionalCommandBuilder.assertArgument(int index,
Predicate<String> test)
Tests a given argument with the provided predicate.
|
FunctionalCommandBuilder<T> |
FunctionalCommandBuilder.assertArgument(int index,
Predicate<String> test,
String failureMessage)
Tests a given argument with the provided predicate.
|
default FunctionalCommandBuilder<org.bukkit.command.ConsoleCommandSender> |
FunctionalCommandBuilder.assertConsole()
Asserts that the sender is instance of ConsoleCommandSender, and sends them the default failure message if
they're not.
|
FunctionalCommandBuilder<org.bukkit.command.ConsoleCommandSender> |
FunctionalCommandBuilder.assertConsole(String failureMessage)
Asserts that the sender is instance of ConsoleCommandSender, and sends them the failure message if they're not
|
default FunctionalCommandBuilder<T> |
FunctionalCommandBuilder.assertFunction(Predicate<? super CommandContext<? extends T>> test)
Asserts that some function returns true.
|
FunctionalCommandBuilder<T> |
FunctionalCommandBuilder.assertFunction(Predicate<? super CommandContext<? extends T>> test,
String failureMessage)
Asserts that some function returns true.
|
default FunctionalCommandBuilder<T> |
FunctionalCommandBuilder.assertOp()
Asserts that the sender is op, and sends them the default failure message if they're not.
|
FunctionalCommandBuilder<T> |
FunctionalCommandBuilder.assertOp(String failureMessage)
Asserts that the sender is op, and sends them the failure message if they don't have permission
|
default FunctionalCommandBuilder<T> |
FunctionalCommandBuilder.assertPermission(String permission)
Asserts that the sender has the specified permission, and sends them the default failure message
if they don't have permission.
|
FunctionalCommandBuilder<T> |
FunctionalCommandBuilder.assertPermission(String permission,
String failureMessage)
Asserts that the sender has the specified permission, and sends them the failure message if they
don't have permission.
|
default FunctionalCommandBuilder<org.bukkit.entity.Player> |
FunctionalCommandBuilder.assertPlayer()
Asserts that the sender is instance of Player, and sends them the default failure message if they're not.
|
FunctionalCommandBuilder<org.bukkit.entity.Player> |
FunctionalCommandBuilder.assertPlayer(String failureMessage)
Asserts that the sender is instance of Player, and sends them the failure message if they're not
|
default FunctionalCommandBuilder<T> |
FunctionalCommandBuilder.assertSender(Predicate<T> test)
Tests the sender with the provided predicate.
|
FunctionalCommandBuilder<T> |
FunctionalCommandBuilder.assertSender(Predicate<T> test,
String failureMessage)
Tests the sender with the provided predicate.
|
default FunctionalCommandBuilder<T> |
FunctionalCommandBuilder.assertUsage(String usage)
Asserts that the arguments match the given usage string.
|
FunctionalCommandBuilder<T> |
FunctionalCommandBuilder.assertUsage(String usage,
String failureMessage)
Asserts that the arguments match the given usage string.
|
FunctionalCommandBuilder<T> |
FunctionalCommandBuilder.description(String description)
Sets the command description to the specified one.
|
static FunctionalCommandBuilder<org.bukkit.command.CommandSender> |
FunctionalCommandBuilder.newBuilder() |
FunctionalCommandBuilder<T> |
FunctionalCommandBuilder.tabHandler(FunctionalTabHandler<T> tabHandler)
Sets the tab handler to the provided one.
|
Copyright © 2022. All rights reserved.