Package net.minecraft.server.commands
Class WhitelistCommand
java.lang.Object
net.minecraft.server.commands.WhitelistCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private 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
addPlayers
(CommandSourceStack source, Collection<com.mojang.authlib.GameProfile> players) private static int
disableWhitelist
(CommandSourceStack source) private static int
enableWhitelist
(CommandSourceStack source) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher) private static int
reload
(CommandSourceStack source) private static int
removePlayers
(CommandSourceStack source, Collection<com.mojang.authlib.GameProfile> players) private static int
showList
(CommandSourceStack source)
-
Field Details
-
ERROR_ALREADY_ENABLED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_ALREADY_ENABLED -
ERROR_ALREADY_DISABLED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_ALREADY_DISABLED -
ERROR_ALREADY_WHITELISTED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_ALREADY_WHITELISTED -
ERROR_NOT_WHITELISTED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_NOT_WHITELISTED
-
-
Constructor Details
-
WhitelistCommand
public WhitelistCommand()
-
-
Method Details
-
register
-
reload
-
addPlayers
private static int addPlayers(CommandSourceStack source, Collection<com.mojang.authlib.GameProfile> players) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
removePlayers
private static int removePlayers(CommandSourceStack source, Collection<com.mojang.authlib.GameProfile> players) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
enableWhitelist
private static int enableWhitelist(CommandSourceStack source) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
disableWhitelist
private static int disableWhitelist(CommandSourceStack source) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
showList
-