Class PardonIpCommand
java.lang.Object
net.minecraft.server.dedicated.command.PardonIpCommand
public class PardonIpCommand extends Object
-
Field Summary
Fields Modifier and Type Field Description private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ALREADY_UNBANNED_EXCEPTION
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
INVALID_IP_EXCEPTION
-
Constructor Summary
Constructors Constructor Description PardonIpCommand()
-
Method Summary
Modifier and Type Method Description private static int
pardonIp(ServerCommandSource source, String target)
static void
register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
-
Field Details
-
INVALID_IP_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType INVALID_IP_EXCEPTION -
ALREADY_UNBANNED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ALREADY_UNBANNED_EXCEPTION
-
-
Constructor Details
-
PardonIpCommand
public PardonIpCommand()
-
-
Method Details
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) -
pardonIp
private static int pardonIp(ServerCommandSource source, String target) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-