Package net.minecraft.command.impl
Class BanIpCommand
- java.lang.Object
-
- net.minecraft.command.impl.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()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static int
banIp(CommandSource p_198224_0_, java.lang.String p_198224_1_, ITextComponent p_198224_2_)
private static int
banIpOrName(CommandSource p_198223_0_, java.lang.String p_198223_1_, ITextComponent p_198223_2_)
static void
register(com.mojang.brigadier.CommandDispatcher<CommandSource> p_198220_0_)
-
-
-
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
-
-
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
-
-