Browse Source

Implement plugin-support check for join/quit messages

Lorenzo Dellacà 3 years ago
parent
commit
e13185fa29
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/java/de/Linus122/TelegramChat/TelegramChat.java

+ 2 - 2
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) {