diff --git a/common/src/main/java/net/draycia/carbon/common/command/commands/PartyCommands.java b/common/src/main/java/net/draycia/carbon/common/command/commands/PartyCommands.java index 1e45d37a..3b6fb770 100644 --- a/common/src/main/java/net/draycia/carbon/common/command/commands/PartyCommands.java +++ b/common/src/main/java/net/draycia/carbon/common/command/commands/PartyCommands.java @@ -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()); } diff --git a/common/src/main/java/net/draycia/carbon/common/messages/CarbonMessages.java b/common/src/main/java/net/draycia/carbon/common/messages/CarbonMessages.java index f036385a..35b05957 100644 --- a/common/src/main/java/net/draycia/carbon/common/messages/CarbonMessages.java +++ b/common/src/main/java/net/draycia/carbon/common/messages/CarbonMessages.java @@ -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); diff --git a/common/src/main/java/net/draycia/carbon/common/users/PartyInvites.java b/common/src/main/java/net/draycia/carbon/common/users/PartyInvites.java index 41ac8de8..df4ba1da 100644 --- a/common/src/main/java/net/draycia/carbon/common/users/PartyInvites.java +++ b/common/src/main/java/net/draycia/carbon/common/users/PartyInvites.java @@ -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) { diff --git a/common/src/main/resources/locale/messages-en_US.properties b/common/src/main/resources/locale/messages-en_US.properties index a59e7efe..af12ed10 100644 --- a/common/src/main/resources/locale/messages-en_US.properties +++ b/common/src/main/resources/locale/messages-en_US.properties @@ -64,11 +64,11 @@ command.whisper.description=Sends a private message to the specified player. command.party.pagination_header=Party members: command.party.pagination_element=':''> - command.party.created=Successfully created and joined party ''! -command.party.not_in_party=You are not in a party. +command.party.not_in_party=You are not in a party. Use '/party create' to create one, or '/party accept' to accept an invite. command.party.current_party=You are in party: command.party.must_leave_current_first=You must leave your current party first. command.party.name_too_long=Party name is too long. -command.party.received_invite=You were invited to the party '' by . +command.party.received_invite=Click to accept'>'>You were invited to the party '' by . Click this message to accept. command.party.sent_invite=Sent party invite to . command.party.must_specify_invite=You must specify whose party invite to accept. command.party.no_pending_invites=You do not have any pending party invites. @@ -77,7 +77,7 @@ command.party.joined_party=Successfully joined party 'Successfully left party ''. command.party.disbanded=Successfully disbanded party ''. command.party.cannot_disband_multiple_members=Cannot disband party '', you are not the last member. -command.party.must_be_in_party=You must be in a party to use this command. +command.party.must_be_in_party=You must be in a party to use this command. Use '/party create' to create one, or '/party accept' to accept an invite. command.party.cannot_invite_self=You cannot invite yourself. command.party.description=Get info about and see members of your current party. command.party.create.description=Create a new party.