Make party UserSync event extend PartyMemberMessage

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2019-02-05 12:10:17 +00:00
parent 09a7dd7579
commit 18610d6804
3 changed files with 7 additions and 5 deletions

View File

@@ -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;
}

View File

@@ -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;

View File

@@ -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);
}
}