Esempio n. 1
0
        public async Task Handle(WorldClient client, GuildJoinRequestPacket packet)
        {
            if (_guildManager.HasGuild || _gameSession.CharId == 0)
            {
                _packetFactory.SendGuildJoinRequest(client, false);
                return;
            }

            var success = await _guildManager.RequestJoin(packet.GuildId, _gameWorld.Players[_gameSession.CharId]);

            _packetFactory.SendGuildJoinRequest(client, success);
        }