mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-07-24 03:20:30 +02:00
Fixed linkshell invites being stackable. Fixed founder of a LS not being set to master.
This commit is contained in:
parent
a07aa12783
commit
8a03c40af9
4 changed files with 21 additions and 11 deletions
|
@ -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();
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue