-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
144 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,38 @@ | ||
namespace GangsAPI.Data.Command; | ||
|
||
public enum CommandResult { | ||
/// <summary> | ||
/// The command completed successfully | ||
/// </summary> | ||
SUCCESS, | ||
|
||
/// <summary> | ||
/// The command encountered an error or other | ||
/// scenario that prevented success | ||
/// </summary> | ||
FAILURE, | ||
|
||
/// <summary> | ||
/// The command was improperly formatted | ||
/// </summary> | ||
UNKNOWN_COMMAND, | ||
|
||
/// <summary> | ||
/// The command has improper arguments, or | ||
/// no sufficient arguments | ||
/// </summary> | ||
INVALID_ARGS, | ||
|
||
/// <summary> | ||
/// The executor of the command did not have | ||
/// the required permissions | ||
/// </summary> | ||
NO_PERMISSION, | ||
|
||
|
||
/// <summary> | ||
/// This command can only be executed by a player | ||
/// (i.e. not from the console) | ||
/// </summary> | ||
PLAYER_ONLY | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters