Merge branch 'general-devel' into general-devel

This commit is contained in:
Cai 2025-09-01 18:19:34 +08:00 committed by GitHub
commit ed2412fa23
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 364 additions and 358 deletions

View file

@ -565,7 +565,7 @@ namespace TShockAPI.DB
permissions.ForEach(p => group.AddPermission(p));
if (database.Query("UPDATE GroupList SET Commands=@0 WHERE GroupName=@1", group.Permissions, name) == 1)
return "Group " + name + " has been modified successfully.";
return GetString($"Group {name} has been modified successfully.");
// Restore old permissions so DB and internal object are in a consistent state
group.Permissions = oldperms;
@ -588,7 +588,7 @@ namespace TShockAPI.DB
permissions.ForEach(p => group.RemovePermission(p));
if (database.Query("UPDATE GroupList SET Commands=@0 WHERE GroupName=@1", group.Permissions, name) == 1)
return "Group " + name + " has been modified successfully.";
return GetString($"Group {name} has been modified successfully.");
// Restore old permissions so DB and internal object are in a consistent state
group.Permissions = oldperms;