Skip to content

Commit

Permalink
Merge branch '2.x' into mc/1.20.5
Browse files Browse the repository at this point in the history
  • Loading branch information
JRoy committed Apr 30, 2024
2 parents 9cd7b65 + cde7184 commit 132fa13
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ protected void run(final Server server, final User user, final String commandLab
}

if (isProhibitedChange(user, gameMode)) {
user.sendTl("cantGamemode", gameMode.name());
user.sendTl("cantGamemode", user.playerTl(gameMode.toString().toLowerCase(Locale.ENGLISH)));
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ private void sendMessage(final IMessageRecipient from, final String[] args) thro
final HelpopMessageSendEvent sendEvent = new HelpopMessageSendEvent(from, recipients, message);
ess.getServer().getPluginManager().callEvent(sendEvent);

final IUser sender = (IUser) from;
if(!recipients.contains(sender)){
from.sendTl("helpOp", from.getDisplayName(), message);
}

for (IUser recipient : sendEvent.getRecipients()) {
recipient.sendTl("helpOp", from.getDisplayName(), message);
}
Expand Down

0 comments on commit 132fa13

Please sign in to comment.