/* * public static void DeleteGroup(string parse) * { * bool results = ValheimDB.DeleteGroup(parse); * if (results) * Debug.Log($"The deletion has been executed."); * else * Debug.Log($"The Deletion failed!"); * } */ public static void AddUserPermission(long SteamID, string parse) { bool results = ValheimDB.AddUserPermission(SteamID.ToString(), parse.ToLower()); if (!results) { Debug.Log($"ERROR: The user: {SteamID} already has access to the node: {parse}"); } else { Debug.Log($"The user: {SteamID} now has access to: {parse}"); } }
/* * public static void DeleteGroup(string parse) * { * bool results = ValheimDB.DeleteGroup(parse); * if (results) * Debug.Log($"The deletion has been executed."); * else * Debug.Log($"The Deletion failed!"); * } */ public static void AddUserPermission(long sender, long SteamID, string parse) { bool results = ValheimDB.AddUserPermission(SteamID.ToString(), parse.ToLower()); if (!results) { Util.RoutedBroadcast(sender, $"ERROR: The user: {SteamID} already has access to the node: {parse}"); } else { Util.RoutedBroadcast(sender, $"The user: {SteamID} now has access to: {parse}"); } }