Files
caliverse_server/GameServer/Contents/Escape/EscapeCheat.cs
2025-05-01 07:20:41 +09:00

16 lines
610 B
C#

using ServerCore; using ServerBase;
namespace GameServer;
[ChatCommandAttribute("resetescapeposition", typeof(ChatCommandEscapePosition), AuthAdminLevelType.Developer, AuthAdminLevelType.GmNormal, AuthAdminLevelType.GmSuper)]
internal class ChatCommandEscapePosition : ChatCommandBase
{
public override async Task invoke(Player player, string token, string[] args)
{
var escape_action = player.getEntityAction<EscapeAction>();
NullReferenceCheckHelper.throwIfNull(escape_action, () => $"escape_action is null !!!");
await escape_action.cheatResetEscapePosition();
}
}