server-master/srcs/_plugins/WingsEmu.Plugins.PacketHandling/Game/Group/PJoinPacketHandler.cs
2026-02-10 18:21:30 +01:00

24 lines
No EOL
666 B
C#

using System.Threading.Tasks;
using WingsEmu.Game.Extensions;
using WingsEmu.Game.Groups.Events;
using WingsEmu.Game.Networking;
using WingsEmu.Packets.ClientPackets;
namespace WingsEmu.Plugins.PacketHandling.Game.Group;
public class PjoinPacketHandler : GenericGamePacketHandlerBase<PJoinPacket>
{
protected override async Task HandlePacketAsync(IClientSession session, PJoinPacket packet)
{
if (session.IsActionForbidden())
{
return;
}
await session.EmitEventAsync(new GroupActionEvent
{
CharacterId = packet.CharacterId,
RequestType = packet.RequestType
});
}
}