java.lang.Object
net.minestom.server.command.builder.condition.Conditions

public class Conditions extends Object
Common command conditions
  • Constructor Details

    • Conditions

      public Conditions()
  • Method Details

    • all

      public static CommandCondition all(CommandCondition... conditions)
      Will only execute if all command conditions succeed.
    • any

      public static CommandCondition any(CommandCondition... conditions)
      Will execute if one or more command conditions succeed.
    • playerOnly

      public static boolean playerOnly(CommandSender sender, String commandString)
      Will succeed if the command sender is a player.
    • consoleOnly

      public static boolean consoleOnly(CommandSender sender, String commandString)
      Will succeed if the command sender is the server console.