We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a47e8d8 commit 2d02b04Copy full SHA for 2d02b04
1 file changed
src/main/java/pro/cloudnode/smp/cloudnodemsg/Message.java
@@ -59,7 +59,7 @@ public void send(final boolean channel, final boolean inReply) throws InvalidPla
59
60
if (!recipient.getUniqueId().equals(console.getUniqueId()) && recipientPlayer.isEmpty() || (recipientPlayer.isPresent() && senderPlayer.isPresent() && CloudnodeMSG.isVanished(recipientPlayer.get()) && !senderPlayer.get().hasPermission(Permission.SEND_VANISHED))) {
61
if (!channel) {
62
- final @NotNull Audience senderAudience = senderPlayer.isPresent() ? senderPlayer.get() : CloudnodeMSG.getInstance().getServer();
+ final @NotNull Audience senderAudience = senderPlayer.isPresent() ? senderPlayer.get() : CloudnodeMSG.getInstance().getServer().getConsoleSender();
63
if (inReply) new ReplyOfflineError(recipientUsername).send(senderAudience);
64
else new PlayerNotFoundError(recipientUsername).send(senderAudience);
65
}
0 commit comments