Skip to content

Commit

Permalink
MPChatCommands: add alternate command aliasses /INFO and /I for /STATUS
Browse files Browse the repository at this point in the history
  • Loading branch information
derhass committed May 8, 2023
1 parent 8051c70 commit 540702e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion GameMod/MPChatCommands.cs
Expand Up @@ -243,7 +243,7 @@ public static bool IsEnabled()
} else if (cmdName == "EX" || cmdName == "EXTEND") {
cmd = Command.Extend;
needAuth = true;
} else if (cmdName == "STATUS") {
} else if (cmdName == "I" || cmdName == "INFO" || cmdName == "STATUS") {
cmd = Command.Status;
} else if (cmdName == "SAY" || cmdName == "CHAT") {
cmd = Command.Say;
Expand Down
2 changes: 1 addition & 1 deletion ServerCommands.md
Expand Up @@ -20,7 +20,7 @@ see [the section on privilege management below](#privilege-management) for detai
* `/GIVEPERM <player>`: grant a player the chat command permissions.
* `/REVOKEPERM [<player>]`: revoke chat command permissions from a player or all players.
* `/AUTH password`: a server operator can also start the server with the commandline argument `-chatCommandPassword serverPassword`. Any Player knowing this password can get to authenticated state with this command. If no `serverPassword` is set, this command always fails. Note that the password check is **not** case-sensitive.
* `/STATUS`: short info about chat command and ban status. No permission required for this command.
* `/STATUS` or `/INFO`: short info about chat command and ban status. No permission required for this command.
* `/SAY`: send a message to all players which are not blocked for chat
* `/TEST <player>`: Test player name selection. No permission required for this command.
* `/SWITCHTEAM [<player>]`: Switch the team a player is in. If used without an argument, it affects the player sending this command. Switching teams for players other than yourself requires chat command permissions.
Expand Down

0 comments on commit 540702e

Please sign in to comment.