Added whitelist
This commit is contained in:
parent
089c5b027b
commit
b852c1bd54
1 changed files with 1 additions and 7 deletions
|
|
@ -62,15 +62,8 @@ namespace TShockAPI
|
||||||
GameHooks.OnLoadContent += new Action<Microsoft.Xna.Framework.Content.ContentManager>(OnLoadContent);
|
GameHooks.OnLoadContent += new Action<Microsoft.Xna.Framework.Content.ContentManager>(OnLoadContent);
|
||||||
ServerHooks.OnChat += new Action<int, string, HandledEventArgs>(OnChat);
|
ServerHooks.OnChat += new Action<int, string, HandledEventArgs>(OnChat);
|
||||||
ServerHooks.OnJoin += new Action<int, AllowEventArgs>(OnJoin);
|
ServerHooks.OnJoin += new Action<int, AllowEventArgs>(OnJoin);
|
||||||
NetHooks.OnPreGetData += new NetHooks.GetDataD(OnPreGetData);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnPreGetData(byte id, messageBuffer msg, int idx, int length, HandledEventArgs e)
|
|
||||||
{
|
|
||||||
throw new NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Hooks:
|
* Hooks:
|
||||||
* */
|
* */
|
||||||
|
|
@ -226,6 +219,7 @@ namespace TShockAPI
|
||||||
if (!System.IO.File.Exists(saveDir + "cheaters.txt")) { CreateFile(saveDir + "cheaters.txt"); }
|
if (!System.IO.File.Exists(saveDir + "cheaters.txt")) { CreateFile(saveDir + "cheaters.txt"); }
|
||||||
if (!System.IO.File.Exists(saveDir + "admins.txt")) { CreateFile(saveDir + "admins.txt"); }
|
if (!System.IO.File.Exists(saveDir + "admins.txt")) { CreateFile(saveDir + "admins.txt"); }
|
||||||
if (!System.IO.File.Exists(saveDir + "grief.txt")) { CreateFile(saveDir + "grief.txt"); }
|
if (!System.IO.File.Exists(saveDir + "grief.txt")) { CreateFile(saveDir + "grief.txt"); }
|
||||||
|
if (!System.IO.File.Exists(saveDir + "whitelist.txt")) { CreateFile(saveDir + "whitelist.txt"); }
|
||||||
if (!System.IO.File.Exists(saveDir + "config.txt"))
|
if (!System.IO.File.Exists(saveDir + "config.txt"))
|
||||||
{
|
{
|
||||||
CreateFile(saveDir + "config.txt");
|
CreateFile(saveDir + "config.txt");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue