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.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static int
banIp
(CommandSourceStack pSource, String pIp, Component pReason) private static int
banIpOrName
(CommandSourceStack pSource, String pUsername, Component pReason) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_136528_)
-
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
-