Added a /motd command.

This commit is contained in:
erikive 2011-09-23 19:04:59 -05:00
parent a4176947ae
commit 922a2b26fa

View file

@ -165,6 +165,7 @@ namespace TShockAPI
add(null, AuthToken, "auth"); add(null, AuthToken, "auth");
add(null, ThirdPerson, "me"); add(null, ThirdPerson, "me");
add(null, PartyChat, "p"); add(null, PartyChat, "p");
add(null, Motd, "motd");
add(null, Rules, "rules"); add(null, Rules, "rules");
add(Permissions.logs, DisplayLogs, "displaylogs"); add(Permissions.logs, DisplayLogs, "displaylogs");
ChatCommands.Add(new Command(PasswordUser, "password") { DoLog = false }); ChatCommands.Add(new Command(PasswordUser, "password") { DoLog = false });
@ -2155,6 +2156,11 @@ namespace TShockAPI
} }
} }
private static void Motd(CommandArgs args)
{
Tools.ShowFileToUser(args.Player, "motd.txt");
}
private static void Rules(CommandArgs args) private static void Rules(CommandArgs args)
{ {
Tools.ShowFileToUser(args.Player, "rules.txt"); Tools.ShowFileToUser(args.Player, "rules.txt");