private void SetModeratorCommand(BasePlayer player, string command, string[] args) { if (player.net.connection.authLevel != 2) { SendReply(player, "You do not have access to this command."); return; } var info = new AutomaticAuthInfo(args[0], 1); if (automaticAuthData.AutomaticAuths.ContainsKey(info.SteamID)) { SendReply(player, "Player already set as moderator or ownerid!"); } else { automaticAuthData.AutomaticAuths.Add(args[0], 1); ConsoleSystem.Run.Server.Normal("moderatorid " + args[0] + " '' 'Set automatically by AutomaticAuth'"); SendReply(player, "Player has been set as moderator!"); } Interface.GetMod().DataFileSystem.WriteObject("AutomaticAuths", automaticAuthData); }