Skip to content

Commit 2d02b04

Browse files
committed
server audience is all players, use console audience instead
1 parent a47e8d8 commit 2d02b04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/pro/cloudnode/smp/cloudnodemsg/Message.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public void send(final boolean channel, final boolean inReply) throws InvalidPla
5959

6060
if (!recipient.getUniqueId().equals(console.getUniqueId()) && recipientPlayer.isEmpty() || (recipientPlayer.isPresent() && senderPlayer.isPresent() && CloudnodeMSG.isVanished(recipientPlayer.get()) && !senderPlayer.get().hasPermission(Permission.SEND_VANISHED))) {
6161
if (!channel) {
62-
final @NotNull Audience senderAudience = senderPlayer.isPresent() ? senderPlayer.get() : CloudnodeMSG.getInstance().getServer();
62+
final @NotNull Audience senderAudience = senderPlayer.isPresent() ? senderPlayer.get() : CloudnodeMSG.getInstance().getServer().getConsoleSender();
6363
if (inReply) new ReplyOfflineError(recipientUsername).send(senderAudience);
6464
else new PlayerNotFoundError(recipientUsername).send(senderAudience);
6565
}

0 commit comments

Comments
 (0)