public class BanIpCommand
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType | 
FAILED_EXCEPTION  | 
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType | 
IP_INVALID  | 
static java.util.regex.Pattern | 
IP_PATTERN  | 
| Constructor and Description | 
|---|
BanIpCommand()  | 
| Modifier and Type | Method and Description | 
|---|---|
private static int | 
banIpAddress(CommandSource source,
            java.lang.String ip,
            ITextComponent reason)  | 
private static int | 
banUsernameOrIp(CommandSource source,
               java.lang.String username,
               ITextComponent reason)  | 
static void | 
register(com.mojang.brigadier.CommandDispatcher<CommandSource> dispatcher)  | 
public static final java.util.regex.Pattern IP_PATTERN
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType IP_INVALID
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType FAILED_EXCEPTION
public static void register(com.mojang.brigadier.CommandDispatcher<CommandSource> dispatcher)
private static int banUsernameOrIp(CommandSource source, java.lang.String username, @Nullable ITextComponent reason) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxExceptionprivate static int banIpAddress(CommandSource source, java.lang.String ip, @Nullable ITextComponent reason) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException