public class BanIpCommand extends Object
Modifier and Type | Field and Description |
---|---|
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
ALREADY_BANNED_EXCEPTION |
static Pattern |
field_13466 |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
INVALID_IP_EXCEPTION |
Constructor and Description |
---|
BanIpCommand() |
Modifier and Type | Method and Description |
---|---|
private static int |
banIp(ServerCommandSource serverCommandSource,
String string,
Text text) |
private static int |
checkIp(ServerCommandSource serverCommandSource,
String string,
Text text) |
static void |
register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> commandDispatcher) |
public static final Pattern field_13466
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType INVALID_IP_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ALREADY_BANNED_EXCEPTION
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> commandDispatcher)
private static int checkIp(ServerCommandSource serverCommandSource, String string, @Nullable Text text) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int banIp(ServerCommandSource serverCommandSource, String string, @Nullable Text text) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException