feat: Adds StaffAccess and ResetStaffDress commands (#895)

This commit is contained in:
Kamron Batman 2021-12-27 01:27:15 -08:00 • committed by GitHub
parent a264f2a34e
commit 58190674f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 282 additions and 138 deletions

View file

@ -19,7 +19,8 @@ namespace Server.Commands
CommandSystem.Register("SetProfiles", AccessLevel.Administrator, SetProfiles_OnCommand);
}
[Usage("WriteProfiles"), Description("Generates a log files containing performance diagnostic information.")]
[Usage("WriteProfiles")]
[Description("Generates a log files containing performance diagnostic information.")]
public static void WriteProfiles_OnCommand(CommandEventArgs e)
{
try
@ -86,7 +87,8 @@ namespace Server.Commands
}
}
[Usage("CountObjects"), Description("Generates a log file detailing all item and mobile types in the world.")]
[Usage("CountObjects")]
[Description("Generates a log file detailing all item and mobile types in the world.")]
public static void CountObjects_OnCommand(CommandEventArgs e)
{
using (var op = new StreamWriter("objects.log"))
@ -140,7 +142,8 @@ namespace Server.Commands
e.Mobile.SendMessage("Object table has been generated. See the file : objects.log");
}
[Usage("TraceExpanded"), Description("Generates a log file describing all items using expanded memory.")]
[Usage("TraceExpanded")]
[Description("Generates a log file describing all items using expanded memory.")]
public static void TraceExpanded_OnCommand(CommandEventArgs e)
{
var typeTable = new Dictionary<Type, int[]>();
@ -251,7 +254,8 @@ namespace Server.Commands
}
}
[Usage("TraceInternal"), Description("Generates a log file describing all items in the 'internal' map.")]
[Usage("TraceInternal")]
[Description("Generates a log file describing all items in the 'internal' map.")]
public static void TraceInternal_OnCommand(CommandEventArgs e)
{
var totalCount = 0;