Queues a command so that the command will run whenever a player is online. This
can be formatted prior to the method passing or you can give a %player% argument
and this method will replace that with the player's name if the player can be
retrieve from the given UUID.
This will return an empty optional if the player did not have any queued commands.
If you or any other plugin did not parse the player's name prior to queuing it then
this may return strings with %player% inside. This is not formatted by core until
the command is sent on player login.
player - to retrieve commands by
a list of commands that are queued up for a player if any exist
This will return all the commands that have been registered by core but also
will include any commands that were registered by other plugins via the core api.
This can be used to access information about a given command or to test whether
or not you would want to delete/modify a command with either unregisterCommand(String)
or registerCommand(Command, Object)
This will remove a command from core's registry if the passed name is tied
to one of the registered commands. If there is no command by the given name
then this will return an empty optional. Names can be found in game by
using /[command_name] info
Adds a command to the registry and will automatically register the command live
to whatever minecraft-api the accessor is using.
This will not work and will return false if the command is already registered, the
Command was not built entirely, or if the object provided is not a valid container.
Otherwise it will carry out operations and return true.
The container parameter within this method is needed for several minecraft-apis. Use
whatever container is available from each API.
command - to register
container - of the plugin that is registering this command.