Class BanIpCommand


  • public class BanIpCommand
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_ALREADY_BANNED  
      private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_INVALID_IP  
      static java.util.regex.Pattern IP_ADDRESS_PATTERN  
    • Constructor Summary

      Constructors 
      Constructor Description
      BanIpCommand()  
    • Field Detail

      • IP_ADDRESS_PATTERN

        public static final java.util.regex.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 Detail

      • BanIpCommand

        public BanIpCommand()
    • Method Detail

      • register

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

        private static int banIpOrName​(CommandSource p_198223_0_,
                                       java.lang.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_,
                                 java.lang.String p_198224_1_,
                                 @Nullable
                                 ITextComponent p_198224_2_)
                          throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException