Args
Assembly: uMod.Core.dll
Inheritance Object Args
Implements IArgs, IDisposable, IEnumerable<Object>, IEnumerable
Summary
Represents a parsed command
Constructors
Name | Summary |
|---|---|
Args () | Create a new empty args object |
Args ( | Create a new args object |
Properties
Name | Summary |
|---|---|
Arguments | Get all arguments, named and arbitrary |
Command | Gets the verb |
ContextObjects | Gets context objects |
Definition | Gets the command definition |
IsAdmin | Determine if command is from administrator |
IsModerator | Determine if command is from moderator |
IsServer | Determine if command is from server |
IsValid | Determine if required arguments are provided |
Item [ | Gets or sets an argument |
Item | Gets or sets an argument |
Keys | Gets all argument keys |
Length | Gets length of arguments |
Player | Get Player who ran command |
Values | Gets all argument values |
Methods
Name | Summary |
|---|---|
Dispose () | Dispose of Arg |
Gets the specified case-insensitive named argument | |
Gets the specified case-insensitive named argument | |
Get argument as boolean by the specified key Default is returned when specified key is unavailable | |
Get argument as boolean by the specified key Default is returned when specified key is unavailable | |
Get argument as byte by the specified key Default is returned when specified key is unavailable | |
GetDateTime ( | Get argument as datetime by the specified key Default is returned when specified key is unavailable |
Get argument as decimal by the specified key Default is returned when specified key is unavailable | |
Get argument as double by the specified key Default is returned when specified key is unavailable | |
GetEnumerator () | |
Get argument as float by the specified key Default is returned when specified key is unavailable | |
Get argument as integer by the specified key Default is returned when specified key is unavailable | |
Get argument as long by the specified key Default is returned when specified key is unavailable | |
Get argument as integer by the specified key Default is returned when specified key is unavailable | |
Get argument as long by the specified key Default is returned when specified key is unavailable | |
Get argument as point by the specified key | |
Get argument as position by the specified key | |
Get argument as position4 by the specified key | |
Get argument as signed byte by the specified key Default is returned when specified key is unavailable | |
Get argument as short by the specified key Default is returned when specified key is unavailable | |
Get argument as string by the specified key Default is returned when specified key is unavailable | |
GetTimeSpan ( | Get argument as timespan by the specified key Default is returned when specified key is unavailable |
Get argument as unsigned integer by the specified key Default is returned when specified key is unavailable | |
Get argument as unsigned long by the specified key Default is returned when specified key is unavailable | |
Get argument as unsigned long by the specified key Default is returned when specified key is unavailable | |
Get argument as unsigned short by the specified key Default is returned when specified key is unavailable | |
HasArgument ( | Determine if argument exists in command |
Determine if argument is of type | |
Determine if argument is of type | |
IsDefault ( | Determine if argument is default |
Message ( | Sends the specified message to the player |
Sends the specified message and prefix to the player | |
Reply ( | Replies to the player with the specified message |
Replies to the player with the specified message and prefix | |
Shift ( | |
ToString () | Transform Args object to string |
Try to get an argument by name | |
Try to get a context object of the specified type | |