mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
Adjust default party command messages
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user