Class BanIpCommand

java.lang.Object
net.minecraft.command.impl.BanIpCommand

public class BanIpCommand 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

    • BanIpCommand

      public BanIpCommand()
  • Method Details

    • register

      public static void register(com.mojang.brigadier.CommandDispatcher<CommandSource> p_198220_0_)
    • banIpOrName

      private static int banIpOrName(CommandSource p_198223_0_, String p_198223_1_, @Nullable ITextComponent p_198223_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • banIp

      private static int banIp(CommandSource p_198224_0_, String p_198224_1_, @Nullable ITextComponent p_198224_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException