Class BanIpCommands

java.lang.Object
net.minecraft.server.commands.BanIpCommands

public class BanIpCommands extends Object
  • Field Details

    • IP_ADDRESS_PATTERN

      public static final Pattern IP_ADDRESS_PATTERN
    • ERROR_INVALID_IP

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_INVALID_IP
    • ERROR_ALREADY_BANNED

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_ALREADY_BANNED
  • Constructor Details

    • BanIpCommands

      public BanIpCommands()
  • Method Details

    • register

      public static void register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_136528_)
    • banIpOrName

      private static int banIpOrName(CommandSourceStack p_136534_, String p_136535_, @Nullable Component p_136536_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • banIp

      private static int banIp(CommandSourceStack p_136540_, String p_136541_, @Nullable Component p_136542_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException