Upload from upload_mods.ps1
This commit is contained in:
24
TormentedEmu/ConsoleCMDTeLogging.cs
Normal file
24
TormentedEmu/ConsoleCMDTeLogging.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
public class ConsoleCmdTELogging : ConsoleCmdAbstract
|
||||
{
|
||||
public override bool IsExecuteOnClient => true;
|
||||
public override bool AllowedInMainMenu => false;
|
||||
public override int DefaultPermissionLevel => 1000;
|
||||
|
||||
public override void Execute(List<string> _params, CommandSenderInfo _senderInfo)
|
||||
{
|
||||
RebirthUtilities.TeLogging = !RebirthUtilities.TeLogging;
|
||||
Log.Out($"TeLogging enabled: {RebirthUtilities.TeLogging}");
|
||||
}
|
||||
|
||||
public override string[] getCommands()
|
||||
{
|
||||
return new string[1] { "telog" };
|
||||
}
|
||||
|
||||
public override string getDescription()
|
||||
{
|
||||
return "Enables extra logging for TE";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user