Adjust default party command messages

This commit is contained in:
Jason Penilla committed 2023-10-05 14:38:08 -07:00
1 parent 8864ed8a8a
commit 6fe864190e
4 files changed
+6 -6

No files matched your search

@@ -211,7 +211,7 @@ public final class PartyCommands extends CarbonCommand {
return;
}
this.partyInvites.sendInvite(player.uuid(), recipient.uuid(), party.id());
this.messages.receivedPartyInvite(recipient, player.displayName(), party.name());
this.messages.receivedPartyInvite(recipient, player.displayName(), player.username(), party.name());
this.messages.sentPartyInvite(player, recipient.displayName(), party.name());
}
@@ -448,7 +448,7 @@ public interface CarbonMessages {
void partyNameTooLong(Audience audience);
@Message("command.party.received_invite")
void receivedPartyInvite(Audience audience, Component senderDisplayName, Component partyName);
void receivedPartyInvite(Audience audience, Component senderDisplayName, String senderUsername, Component partyName);
@Message("command.party.sent_invite")
void sentPartyInvite(Audience audience, Component recipientDisplayName, Component partyName);
@@ -127,7 +127,7 @@ public final class PartyInvites {
CompletableFuture.allOf(to, from, party).thenRun(() -> {
if (to.join().online()) {
this.messages.receivedPartyInvite(to.join(), from.join().displayName(), party.join().name());
this.messages.receivedPartyInvite(to.join(), from.join().displayName(), from.join().username(), party.join().name());
}
}).whenComplete(($, thr) -> {
if (thr != null) {