diff --git a/src/main/java/de/Linus122/TelegramChat/TelegramChat.java b/src/main/java/de/Linus122/TelegramChat/TelegramChat.java index 5120cc7..5c5d8a7 100755 --- a/src/main/java/de/Linus122/TelegramChat/TelegramChat.java +++ b/src/main/java/de/Linus122/TelegramChat/TelegramChat.java @@ -201,7 +201,7 @@ public class TelegramChat extends JavaPlugin implements Listener { if (!this.getConfig().getBoolean("enable-joinquitmessages")) return; - if(VanishAPI.isInvisible(e.getPlayer())) + if(isSuperVanish && VanishAPI.isInvisible(e.getPlayer())) return; if (telegramHook.connected) { @@ -229,7 +229,7 @@ public class TelegramChat extends JavaPlugin implements Listener { if (!this.getConfig().getBoolean("enable-joinquitmessages")) return; - if(VanishAPI.isInvisible(e.getPlayer())) + if(isSuperVanish && VanishAPI.isInvisible(e.getPlayer())) return; if (telegramHook.connected) {