Adds banned items. Delete groups.txt and run server once.
This commit is contained in:
parent
2807bb70ab
commit
d2c1082c59
9 changed files with 119 additions and 23 deletions
|
|
@ -29,6 +29,7 @@ namespace TShockAPI
|
|||
public static readonly string WhitelistPath = Path.Combine(TShock.SavePath, "whitelist.txt");
|
||||
public static readonly string GroupsPath = Path.Combine(TShock.SavePath, "groups.txt");
|
||||
public static readonly string UsersPath = Path.Combine(TShock.SavePath, "users.txt");
|
||||
public static readonly string ItemBansPath = Path.Combine(TShock.SavePath, "itembans.txt");
|
||||
public static readonly string ConfigPath = Path.Combine(TShock.SavePath, "config.json");
|
||||
|
||||
public static void CreateFile(string file)
|
||||
|
|
@ -60,6 +61,7 @@ namespace TShockAPI
|
|||
CreateIfNot(WhitelistPath);
|
||||
CreateIfNot(GroupsPath, Resources.groups);
|
||||
CreateIfNot(UsersPath, Resources.users);
|
||||
CreateIfNot(ItemBansPath, Resources.itembans);
|
||||
|
||||
try
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue