Class BanIpCommands
java.lang.Object
net.minecraft.server.commands.BanIpCommands
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final SimpleCommandExceptionTypeprivate static final SimpleCommandExceptionType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static intbanIp(CommandSourceStack source, String ip, @Nullable Component reason) private static intbanIpOrName(CommandSourceStack source, String target, @Nullable Component reason) static voidregister(CommandDispatcher<CommandSourceStack> dispatcher)
-
Field Details
-
ERROR_INVALID_IP
-
ERROR_ALREADY_BANNED
-
-
Constructor Details
-
BanIpCommands
public BanIpCommands()
-
-
Method Details
-
register
-
banIpOrName
private static int banIpOrName(CommandSourceStack source, String target, @Nullable Component reason) throws CommandSyntaxException - Throws:
CommandSyntaxException
-
banIp
private static int banIp(CommandSourceStack source, String ip, @Nullable Component reason) throws CommandSyntaxException - Throws:
CommandSyntaxException
-