Fixed linkshell invites being stackable. Fixed founder of a LS not being set to master.

This commit is contained in:
Filip Maj 2019-06-08 15:51:17 -04:00
parent a07aa12783
commit 8a03c40af9
4 changed files with 21 additions and 11 deletions

View file

@ -381,7 +381,7 @@ namespace FFXIVClassic_World_Server
throw new NotImplementedException();
}
public static bool LinkshellAddPlayer(ulong lsId, uint charaId)
public static bool LinkshellAddPlayer(ulong lsId, uint charaId, byte rank = LinkshellManager.RANK_MEMBER)
{
string query;
MySqlCommand cmd;
@ -394,14 +394,15 @@ namespace FFXIVClassic_World_Server
query = @"
INSERT INTO characters_linkshells
(characterId, linkshellId)
(characterId, linkshellId, rank)
VALUES
(@charaId, @lsId)
(@charaId, @lsId, @rank)
";
cmd = new MySqlCommand(query, conn);
cmd.Parameters.AddWithValue("@charaId", charaId);
cmd.Parameters.AddWithValue("@lsId", lsId);
cmd.Parameters.AddWithValue("@rank", rank);
cmd.ExecuteNonQuery();
}