fixes the fix for 5768

This commit is contained in:
Evidentsinger14 2024-04-28 19:23:57 -04:00
parent 549283a1e5
commit 835d522c90
1 changed files with 4 additions and 1 deletions

View File

@ -51,7 +51,10 @@ public class Commandhelpop extends EssentialsCommand {
final HelpopMessageSendEvent sendEvent = new HelpopMessageSendEvent(from, recipients, message);
ess.getServer().getPluginManager().callEvent(sendEvent);
from.sendTl("helpOp", from.getDisplayName(), message);
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);