Implement /su command & default group owner
/su elevates you to superadmin for 10 minutes. Account creation instructions tell you to use the "owner" group. If you fail to run a command but have the su permission, you're told that you can override it. Fixes #1505
This commit is contained in:
parent
3a8aa7fa29
commit
0bbd128f13
3 changed files with 37 additions and 3 deletions
|
|
@ -77,6 +77,8 @@ namespace TShockAPI.DB
|
|||
string.Join(",", Permissions.maintenance, "tshock.cfg.*", "tshock.world.*", Permissions.butcher, Permissions.item, Permissions.give,
|
||||
Permissions.heal, Permissions.immunetoban, Permissions.usebanneditem));
|
||||
|
||||
AddDefaultGroup("owner", "trustedadmin", string.Join(",", Permissions.su));
|
||||
|
||||
AddDefaultGroup("vip", "default", string.Join(",", Permissions.reservedslot));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue