Skip to content

Commit

Permalink
Merge pull request #175 from Kapitowa/master
Browse files Browse the repository at this point in the history
fix sending pm from Console
  • Loading branch information
Brikster authored Jun 22, 2022
2 parents 7388db5 + e16acd5 commit 9b28f2e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ protected void handlePrivateMessage(@NotNull CommandSender sender, @NotNull Comm
recipient.sendMessage(recipientFormat);
} else {
FormattedMessage formattedMessage = new FormattedMessage(recipientFormat);
formattedMessage.toFancyMessage().send((Player) recipient, (Player) sender);
formattedMessage.toFancyMessage().send((Player) recipient, sender instanceof Player ? ((Player) sender) : null);

String soundName = configuration.getNode("pm.sound").getAsString(null);
if (soundName != null) {
Expand Down

0 comments on commit 9b28f2e

Please sign in to comment.