Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
CommandTell: fix play sound for second player
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFaser committed Sep 30, 2023
1 parent e75708f commit 2c0a8ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/flectone/misc/commands/FCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public void sendTellMessage(@NotNull CommandSender firstPlayer, @NotNull Command

MessageBuilder messageBuilder = new MessageBuilder(command, message, firstPlayer, itemStack, true);

if (firstPlayer instanceof Player) ObjectUtil.playSound((Player) firstPlayer, "msg");
if (firstPlayer instanceof Player) ObjectUtil.playSound((Player) secondPlayer, "msg");

if (!(firstPlayer instanceof BlockCommandSender))
sendTellUtil(messageBuilder, "send", firstPlayer, secondPlayer, firstPlayer);
Expand Down

0 comments on commit 2c0a8ee

Please sign in to comment.