Fix sender not receiving helpop message (#5769)

This commit is contained in:
Charles DeLancey 2024-04-28 04:39:26 -04:00 committed by GitHub
parent c60ed56190
commit 6a2527ccdb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -51,6 +51,8 @@ public class Commandhelpop extends EssentialsCommand {
final HelpopMessageSendEvent sendEvent = new HelpopMessageSendEvent(from, recipients, message);
ess.getServer().getPluginManager().callEvent(sendEvent);
from.sendTl("helpOp", from.getDisplayName(), message);
for (IUser recipient : sendEvent.getRecipients()) {
recipient.sendTl("helpOp", from.getDisplayName(), message);
}