Changed Sudo command to TempGroup
This commit is contained in:
parent
ae5b47a94e
commit
5d2925d0e2
2 changed files with 4 additions and 4 deletions
|
|
@ -226,7 +226,7 @@ namespace TShockAPI
|
|||
add(Permissions.savessi, SaveSSI, "savessi");
|
||||
add(Permissions.savessi, OverrideSSI, "overridessi", "ossi");
|
||||
add(Permissions.xmas, ForceXmas, "forcexmas");
|
||||
add(Permissions.sudo, Sudo, "sudo");
|
||||
add(Permissions.settempgroup, TempGroup, "tempgroup");
|
||||
//add(null, TestCallbackCommand, "test");
|
||||
}
|
||||
|
||||
|
|
@ -1203,12 +1203,12 @@ namespace TShockAPI
|
|||
(TShock.Config.ForceXmas ? "in" : "not in")));
|
||||
}
|
||||
|
||||
public static void Sudo(CommandArgs args)
|
||||
public static void TempGroup(CommandArgs args)
|
||||
{
|
||||
if (args.Parameters.Count < 2)
|
||||
{
|
||||
args.Player.SendInfoMessage("Invalid usage");
|
||||
args.Player.SendInfoMessage("Usage: /sudo <username> <new group>");
|
||||
args.Player.SendInfoMessage("Usage: /tempgroup <username> <new group>");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -175,7 +175,7 @@ namespace TShockAPI
|
|||
|
||||
[Description("User can use /spawn.")] public static readonly string spawn;
|
||||
|
||||
[Description("User can elevate other users' groups temporarily.")] public static readonly string sudo;
|
||||
[Description("User can elevate other users' groups temporarily.")] public static readonly string settempgroup;
|
||||
static Permissions()
|
||||
{
|
||||
foreach (var field in typeof (Permissions).GetFields())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue