Files
7d2dXG/Mods/zzz_REBIRTH__Utils/Scripts/Command/ConsoleCmdTestEvents.cs
Nathaniel Cosford 062dfab2cd Patched
2025-05-30 01:04:40 +09:30

36 lines
1.1 KiB
C#

using System.Collections.Generic;
public class ConsoleCmdTestEvents : ConsoleCmdAbstract
{
public override bool IsExecuteOnClient => true;
public override bool AllowedInMainMenu => false;
public override int DefaultPermissionLevel => 1000;
// testevents 0 1 20 0
// testevents 6 1 10 3 (BANDITS)
public override void Execute(List<string> _params, CommandSenderInfo _senderInfo)
{
if (GameManager.Instance.adminTools == null)
return;
if (_params.Count == 4)
{
RebirthVariables.testEventsType = int.Parse(_params[0]);
RebirthVariables.testEventsCategory = int.Parse(_params[1]);
RebirthVariables.testEventsPlayerLevel = int.Parse(_params[2]);
RebirthVariables.testEventsClassLevel = int.Parse(_params[3]);
RebirthVariables.testEvents = true;
}
}
public override string[] getCommands()
{
return new string[1] { "testevents" };
}
public override string getDescription()
{
return "Lets the player test a single event.";
}
}