File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed
java/net/draycia/carbon/common Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -220,6 +220,16 @@ private void invitePlayer(final CommandContext<PlayerCommander> ctx) {
220
220
return ;
221
221
}
222
222
223
+ if (player .ignoring (recipient )) {
224
+ this .messages .partyTargetIgnoring (player , recipient .displayName ());
225
+ return ;
226
+ }
227
+
228
+ if (recipient .ignoring (player )) {
229
+ this .messages .partyIgnoringTarget (player , recipient .displayName ());
230
+ return ;
231
+ }
232
+
223
233
final @ Nullable Party recipientParty = recipient .party ().join ();
224
234
if (recipientParty != null && recipientParty .id ().equals (party .id ())) {
225
235
this .messages .alreadyInParty (player , recipient .displayName ());
Original file line number Diff line number Diff line change @@ -573,6 +573,12 @@ void errorCommandCommandExecution(
573
573
@ Message ("command.party.already_in_party" )
574
574
void alreadyInParty (Audience audience , Component displayName );
575
575
576
+ @ Message ("command.party.ignoring_target" )
577
+ void partyTargetIgnoring (Audience audience , Component target );
578
+
579
+ @ Message ("command.party.ignored_by_target" )
580
+ void partyIgnoringTarget (Audience audience , Component target );
581
+
576
582
@ Message ("command.party.description" )
577
583
Component partyDesc ();
578
584
Original file line number Diff line number Diff line change @@ -90,6 +90,8 @@ command.party.accept.description=Accept party invites.
90
90
command.party.leave.description=Leave your current party.
91
91
command.party.already_in_party=<display_name><red> is already in your party.
92
92
command.party.disband.description=Disband your current party.
93
+ command.party.ignoring_target=<red>You are ignoring <target>
94
+ command.party.ignored_by_target=<red><target> <red>is ignoring you
93
95
command.spy.enabled=<green>Spying is now enabled.
94
96
command.spy.disabled=<red>Spying is now disabled.
95
97
command.spy.description=Allows a player to view all private and channel messages they otherwise wouldn' t see.
You can’t perform that action at this time.
0 commit comments