/// <summary> /// Notifies a player that a server can now be accessed. This might also be called if they're given admin access to the server. /// </summary> /// <param name="server"></param> /// <param name="user"></param> public async Task OnUserServerJoined(DbServer server, DbUser user) { //Get the net version of the guild var net = await NetGuildUser.GetNetGuild(conn, server, user); //Get payload and send RPCPayloadServerJoined payload = new RPCPayloadServerJoined(net); RPCMessageTool.SendRPCMsgToUserID(conn, RPC.RPCOpcode.SERVER_JOINED, payload, user._id); }
public RPCPayloadServerJoined(NetGuildUser guild) { server_id = guild.id; this.guild = guild; }