Added /rules, reads from ./tshock/rules.txt
This commit is contained in:
parent
7e8e8fb986
commit
b8b4b6c8e8
2 changed files with 22 additions and 0 deletions
|
|
@ -61,6 +61,14 @@ namespace TShockAPI
|
|||
{
|
||||
Directory.CreateDirectory(SaveDir);
|
||||
}
|
||||
if (!File.Exists(SaveDir + "rules.txt"))
|
||||
{
|
||||
CreateFile(SaveDir + "rules.txt");
|
||||
TextWriter tw = new StreamWriter(SaveDir + "rules.txt");
|
||||
tw.WriteLine("Respect the admins!");
|
||||
tw.WriteLine("Don't use TNT!");
|
||||
tw.Close();
|
||||
}
|
||||
if (!File.Exists(SaveDir + "motd.txt"))
|
||||
{
|
||||
CreateFile(SaveDir + "motd.txt");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue