Class Conditions
java.lang.Object
net.minestom.server.command.builder.condition.Conditions
Common command conditions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CommandCondition
all
(CommandCondition... conditions) Will only execute if all command conditions succeed.static CommandCondition
any
(CommandCondition... conditions) Will execute if one or more command conditions succeed.static boolean
consoleOnly
(CommandSender sender, String commandString) Will succeed if the command sender is the server console.static boolean
playerOnly
(CommandSender sender, String commandString) Will succeed if the command sender is a player.
-
Constructor Details
-
Conditions
public Conditions()
-
-
Method Details
-
all
Will only execute if all command conditions succeed. -
any
Will execute if one or more command conditions succeed. -
playerOnly
Will succeed if the command sender is a player. -
consoleOnly
Will succeed if the command sender is the server console.
-