Adds /dumpdata which dumps the permission table & ref data.
This commit is contained in:
parent
d937789c15
commit
63179deaa5
3 changed files with 15 additions and 1 deletions
|
|
@ -616,6 +616,10 @@ namespace TShockAPI
|
|||
{
|
||||
HelpText = "Sends a PM to a player."
|
||||
});
|
||||
add(new Command(Permissions.createdumps, CreateDumps, "datadump")
|
||||
{
|
||||
HelpText = "Creates a reference tables for Terraria data types and the TShock permission system in the server folder."
|
||||
});
|
||||
#endregion
|
||||
|
||||
add(new Command(Aliases, "aliases")
|
||||
|
|
@ -5178,6 +5182,14 @@ namespace TShockAPI
|
|||
args.Player.SendErrorMessage("No command or command alias matching \"{0}\" found.", givenCommandName);
|
||||
}
|
||||
|
||||
private static void CreateDumps(CommandArgs args)
|
||||
{
|
||||
TShock.Utils.DumpPermissionMatrix("PermissionMatrix.txt");
|
||||
TShock.Utils.Dump();
|
||||
args.Player.SendSuccessMessage("Your reference dumps have been created in the server folder.");
|
||||
return;
|
||||
}
|
||||
|
||||
#endregion General Commands
|
||||
|
||||
#region Cheat Commands
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue