diff --git a/TShockAPI/Tools.cs b/TShockAPI/Tools.cs index 52b31c4b..4b6dbf99 100644 --- a/TShockAPI/Tools.cs +++ b/TShockAPI/Tools.cs @@ -336,6 +336,10 @@ namespace TShockAPI continue; } string[] args = lines[i].Split(' '); + if (args.Length < 2) + { + continue; + } string name = args[0]; string parent = args[1]; Group group = null; @@ -422,6 +426,10 @@ namespace TShockAPI for (int i = 0; i < lines.Length; i++) { string[] args = lines[i].Split(' '); + if (args.Length < 2) + { + continue; + } if (args[0].Equals(ip)) { return GetGroup(args[1]); diff --git a/TShockAPI/config/groups.txt b/TShockAPI/config/groups.txt index 0860d909..957ac72b 100644 --- a/TShockAPI/config/groups.txt +++ b/TShockAPI/config/groups.txt @@ -3,10 +3,12 @@ #if there is no parent, put null instead #groups inherit permissions from their parents #put a ! before a permission to negate it -#currently avaliable permissions: kick ban ignorecheatdetection #Do not remove the group default #Do not name a group SuperAdmin, that is hard-coded into the code, it grants total permissions #ALWAYS DECLARE A GROUP'S PARENT BEFORE YOU DECLARE THE GROUP + +#currently avaliable permissions: kick ban ignorecheatdetection power cfg causeevents spawnboss tp spawnmob cheat kill pvpfun + default null kill newadmin default kick admin newadmin ban causeevents spawnboss spawnmob tp