Files
zzz_REBIRTH__Utils/Scripts/Command/ConsoleCmdNohit.cs
2025-06-04 16:44:53 +09:30

33 lines
1017 B
C#

using System.Collections.Generic;
public class ConsoleCmdNohit : 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)
{
if (!RebirthVariables.noHit)
{
Log.Out("============================== NO HIT LOGGING STARTED ==============================");
}
else
{
Log.Out("============================== NO HIT LOGGING ENDED ==============================");
}
RebirthVariables.noHitCheck = Time.time;
RebirthVariables.noHit = !RebirthVariables.noHit;
}
public override string[] getCommands()
{
return new string[1] { "nohit" };
}
public override string getDescription()
{
return "Enables extra logging in an attempt to figure out the source of the no hit bug";
}
}