16 lines
610 B
C#
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();
|
|
}
|
|
} |