public void HandleRequest(IRequest request) { var player = _zoneManager.GetPlayer(request.Session.Character); player?.Kill(); Message.Builder.FromRequest(request).WithOk().Send(); }
public void HandleRequest(IRequest request) { var character = request.Session.Character; var player = _zoneManager.GetPlayer(character); if (player == null) { return; } var dockingBase = character.GetCurrentDockingBase(); dockingBase.DockIn(character, Player.NormalUndockDelay, ZoneExitType.Docked); Message.Builder.FromRequest(request).WithOk().Send(); Message.Builder.FromRequest(request).WithError(ErrorCodes.SOSStarted).Send(); }