Skip to content

Commit

Permalink
fix: duplicate join message on force vanish
Browse files Browse the repository at this point in the history
  • Loading branch information
Syrent committed Apr 30, 2024
1 parent cdc48cd commit 42eec85
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,6 @@ class PlayerJoinListener(
if (!plugin.vanishedNames.contains(player.name)) {
plugin.vanishManager.unVanish(player, sendJoinMessage = true, callPostEvent = true)
}

val joinMessage = Utils.getSerializedMessage(Settings.formatMessage(player, Message.JOIN_MESSAGE, player, TextReplacement("player", player.name), TextReplacement("play_displayname", player.displayName)))
if (joinMessage.isNotBlank() && joinMessage.isNotEmpty()) {
Ruom.broadcast(joinMessage.component())
}
}, 40)
} else {
plugin.vanishManager.unVanish(player, sendJoinMessage = false, callPostEvent = false)
Expand Down

0 comments on commit 42eec85

Please sign in to comment.