Package net.minecraft.command.impl
Class BanIpCommand
java.lang.Object
net.minecraft.command.impl.BanIpCommand
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
static final Pattern
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static int
banIp
(CommandSource p_198224_0_, String p_198224_1_, ITextComponent p_198224_2_) private static int
banIpOrName
(CommandSource p_198223_0_, String p_198223_1_, ITextComponent p_198223_2_) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSource> p_198220_0_)
-
Field Details
-
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
-
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
-