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 source, String ip, Component reason) private static int
banIpOrName
(CommandSourceStack source, String username, Component reason) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher)
-
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 source, String username, @Nullable Component reason) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
banIp
private static int banIp(CommandSourceStack source, String ip, @Nullable Component reason) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-