Skip to content

Commit 2d88b5f

Browse files
committed
Add vanish compatibility
1 parent 095dd74 commit 2d88b5f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

chatformatter-core/src/main/java/com/eternalcode/formatter/mention/controller/MentionSuggestionsController.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ private void updateChatSuggestions() {
2828
List<String> completions = new ArrayList<>();
2929

3030
for (Player player : allPlayers) {
31+
if (player.isInvisible()) { // Vanish compatibility
32+
continue;
33+
}
34+
3135
String s = "@" + player.getName();
3236
completions.add(s);
3337
}

0 commit comments

Comments
 (0)