Merge pull request #3139 from ACaiCat/i18n-group-manager
i18n: add missing `GetString` wrapper for `GroupManager`
This commit is contained in:
commit
6b3b50d74b
1 changed files with 2 additions and 2 deletions
|
|
@ -565,7 +565,7 @@ namespace TShockAPI.DB
|
||||||
permissions.ForEach(p => group.AddPermission(p));
|
permissions.ForEach(p => group.AddPermission(p));
|
||||||
|
|
||||||
if (database.Query("UPDATE GroupList SET Commands=@0 WHERE GroupName=@1", group.Permissions, name) == 1)
|
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
|
// Restore old permissions so DB and internal object are in a consistent state
|
||||||
group.Permissions = oldperms;
|
group.Permissions = oldperms;
|
||||||
|
|
@ -588,7 +588,7 @@ namespace TShockAPI.DB
|
||||||
permissions.ForEach(p => group.RemovePermission(p));
|
permissions.ForEach(p => group.RemovePermission(p));
|
||||||
|
|
||||||
if (database.Query("UPDATE GroupList SET Commands=@0 WHERE GroupName=@1", group.Permissions, name) == 1)
|
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
|
// Restore old permissions so DB and internal object are in a consistent state
|
||||||
group.Permissions = oldperms;
|
group.Permissions = oldperms;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue