Package net.minecraft.server.commands
Class BanIpCommands
java.lang.Object
net.minecraft.server.commands.BanIpCommands
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static intbanIp(CommandSourceStack pSource, String pIp, Component pReason) private static intbanIpOrName(CommandSourceStack pSource, String pUsername, Component pReason) static voidregister(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> pDispatcher)
-
Field Details
-
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
-
BanIpCommands
public BanIpCommands()
-
-
Method Details
-
register
-
banIpOrName
private static int banIpOrName(CommandSourceStack pSource, String pUsername, @Nullable Component pReason) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
banIp
private static int banIp(CommandSourceStack pSource, String pIp, @Nullable Component pReason) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-