[This is preliminary documentation and is subject to change.]
Parses and calls a specified command.
Namespace: fCraftAssembly: fCraft (in fCraft.dll) Version: 0.6.3.0 (0.6.3.0)
Syntax
| C# |
public static bool ParseCommand( Player player, CommandReader cmd, bool fromConsole )
Parameters
- player
- Player
Player who issued the command.
- cmd
- CommandReader
Command to be parsed and executed.
- fromConsole
- Boolean
Whether this command is being called from a non-player (e.g. Console).
Return Value
True if the command was called, false if something prevented it from being called.
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentNullException | If player or cmd is null. |