Make party UserSync event extend PartyMemberMessage
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
@@ -24,11 +24,9 @@
|
||||
*/
|
||||
package net.runelite.http.api.ws.messages.party;
|
||||
|
||||
import java.util.UUID;
|
||||
import lombok.Value;
|
||||
|
||||
@Value
|
||||
public class UserSync extends PartyMessage
|
||||
public class UserSync extends PartyMemberMessage
|
||||
{
|
||||
private final UUID memberId;
|
||||
}
|
||||
|
||||
@@ -283,7 +283,9 @@ public class PartyPlugin extends Plugin implements KeyListener
|
||||
if (doSync && !party.getMembers().isEmpty())
|
||||
{
|
||||
// Request sync
|
||||
ws.send(new UserSync(party.getLocalMember().getMemberId()));
|
||||
final UserSync userSync = new UserSync();
|
||||
userSync.setMemberId(party.getLocalMember().getMemberId());
|
||||
ws.send(userSync);
|
||||
}
|
||||
|
||||
doSync = false;
|
||||
|
||||
@@ -123,7 +123,9 @@ public class PartyService
|
||||
// Send info to other clients that this user successfully finished joining party
|
||||
if (localMember != null && message.getMemberId().equals(localMember.getMemberId()))
|
||||
{
|
||||
wsClient.send(new UserSync(message.getMemberId()));
|
||||
final UserSync userSync = new UserSync();
|
||||
userSync.setMemberId(message.getMemberId());
|
||||
wsClient.send(userSync);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user