Added a /motd command.
This commit is contained in:
parent
a4176947ae
commit
922a2b26fa
1 changed files with 6 additions and 0 deletions
|
|
@ -165,6 +165,7 @@ namespace TShockAPI
|
|||
add(null, AuthToken, "auth");
|
||||
add(null, ThirdPerson, "me");
|
||||
add(null, PartyChat, "p");
|
||||
add(null, Motd, "motd");
|
||||
add(null, Rules, "rules");
|
||||
add(Permissions.logs, DisplayLogs, "displaylogs");
|
||||
ChatCommands.Add(new Command(PasswordUser, "password") { DoLog = false });
|
||||
|
|
@ -2154,6 +2155,11 @@ namespace TShockAPI
|
|||
args.Player.SendMessage("You are not in a party!", 255, 240, 20);
|
||||
}
|
||||
}
|
||||
|
||||
private static void Motd(CommandArgs args)
|
||||
{
|
||||
Tools.ShowFileToUser(args.Player, "motd.txt");
|
||||
}
|
||||
|
||||
private static void Rules(CommandArgs args)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue