초기커밋
This commit is contained in:
16
GameServer/Contents/Escape/EscapeCheat.cs
Normal file
16
GameServer/Contents/Escape/EscapeCheat.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user