Class Conditions
java.lang.Object
net.minestom.server.command.builder.condition.Conditions
Common command conditions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CommandConditionall(CommandCondition... conditions) Will only execute if all command conditions succeed.static CommandConditionany(CommandCondition... conditions) Will execute if one or more command conditions succeed.static booleanconsoleOnly(CommandSender sender, String commandString) Will succeed if the command sender is the server console.static CommandConditionnot(CommandCondition condition) Inverts the result of the given condition.static booleanplayerOnly(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. -
not
Inverts the result of the given condition.
-