mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-03 06:57:39 +01:00
Fix sender not receiving helpop message (#5769)
This commit is contained in:
parent
c60ed56190
commit
6a2527ccdb
@ -51,6 +51,8 @@ public class Commandhelpop extends EssentialsCommand {
|
|||||||
final HelpopMessageSendEvent sendEvent = new HelpopMessageSendEvent(from, recipients, message);
|
final HelpopMessageSendEvent sendEvent = new HelpopMessageSendEvent(from, recipients, message);
|
||||||
ess.getServer().getPluginManager().callEvent(sendEvent);
|
ess.getServer().getPluginManager().callEvent(sendEvent);
|
||||||
|
|
||||||
|
from.sendTl("helpOp", from.getDisplayName(), message);
|
||||||
|
|
||||||
for (IUser recipient : sendEvent.getRecipients()) {
|
for (IUser recipient : sendEvent.getRecipients()) {
|
||||||
recipient.sendTl("helpOp", from.getDisplayName(), message);
|
recipient.sendTl("helpOp", from.getDisplayName(), message);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user