Merge branch 'general-devel' into feature/db-connectionstrings
This commit is contained in:
commit
52d495d1a4
21 changed files with 30334 additions and 28896 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue