Class WhitelistCommand
java.lang.Object
net.minecraft.server.commands.WhitelistCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final SimpleCommandExceptionTypeprivate static final SimpleCommandExceptionTypeprivate static final SimpleCommandExceptionTypeprivate static final SimpleCommandExceptionType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static intaddPlayers(CommandSourceStack source, Collection<NameAndId> targets) private static intdisableWhitelist(CommandSourceStack source) private static intenableWhitelist(CommandSourceStack source) static voidregister(CommandDispatcher<CommandSourceStack> dispatcher) private static intreload(CommandSourceStack source) private static intremovePlayers(CommandSourceStack source, Collection<NameAndId> targets) private static intshowList(CommandSourceStack source)
-
Field Details
-
ERROR_ALREADY_ENABLED
-
ERROR_ALREADY_DISABLED
-
ERROR_ALREADY_WHITELISTED
-
ERROR_NOT_WHITELISTED
-
-
Constructor Details
-
WhitelistCommand
public WhitelistCommand()
-
-
Method Details
-
register
-
reload
-
addPlayers
private static int addPlayers(CommandSourceStack source, Collection<NameAndId> targets) throws CommandSyntaxException - Throws:
CommandSyntaxException
-
removePlayers
private static int removePlayers(CommandSourceStack source, Collection<NameAndId> targets) throws CommandSyntaxException - Throws:
CommandSyntaxException
-
enableWhitelist
- Throws:
CommandSyntaxException
-
disableWhitelist
- Throws:
CommandSyntaxException
-
showList
-