Skip to content

Commit

Permalink
Fix private messages uuids
Browse files Browse the repository at this point in the history
  • Loading branch information
wtlgo committed Mar 3, 2023
1 parent a497ccf commit d8d168d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ internal class MsgCommand(private val plugin: ChatPlugin, private val history: M

if (sender is Player) {
user.sendMessage(sender.uniqueId, formattedMessage)
if (user != sender) sender.sendMessage(sender.uniqueId, formattedMessage)

plugin.chatLogger.logPrivate(sender, user, message)
} else {
user.sendMessage(formattedMessage)
plugin.chatLogger.logConsole(user, true, message)
}
if (user != sender) sender.sendMessage(formattedMessage)

if (user != sender) {
sender.sendMessage(user.uniqueId, formattedMessage)
plugin.chatLogger.logConsole(user, true, message)
}

val senderUUID = if (sender is Player) sender.uniqueId.toString() else "CONSOLE"
Expand Down

0 comments on commit d8d168d

Please # to comment.