Skip to content

Commit

Permalink
Fix leave messages still sending when vanished
Browse files Browse the repository at this point in the history
Closes #20
  • Loading branch information
quantiom committed Sep 2, 2022
1 parent 8a30337 commit ce7c3c2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ object VanishListener : Listener {
}

if (!Config.getValueOrDefault("when-vanished.leave-messages", false)) {
if (AdvancedVanishAPI.isPlayerVanished(player)) {
if (isVanished) {
event.quitMessage = null
}
}
Expand Down

0 comments on commit ce7c3c2

Please sign in to comment.