Implement plugin-support check for join/quit messages
This commit is contained in:
parent
18091cd7f8
commit
e13185fa29
@ -201,7 +201,7 @@ public class TelegramChat extends JavaPlugin implements Listener {
|
|||||||
if (!this.getConfig().getBoolean("enable-joinquitmessages"))
|
if (!this.getConfig().getBoolean("enable-joinquitmessages"))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(VanishAPI.isInvisible(e.getPlayer()))
|
if(isSuperVanish && VanishAPI.isInvisible(e.getPlayer()))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (telegramHook.connected) {
|
if (telegramHook.connected) {
|
||||||
@ -229,7 +229,7 @@ public class TelegramChat extends JavaPlugin implements Listener {
|
|||||||
if (!this.getConfig().getBoolean("enable-joinquitmessages"))
|
if (!this.getConfig().getBoolean("enable-joinquitmessages"))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(VanishAPI.isInvisible(e.getPlayer()))
|
if(isSuperVanish && VanishAPI.isInvisible(e.getPlayer()))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (telegramHook.connected) {
|
if (telegramHook.connected) {
|
||||||
|
Loading…
Reference in New Issue
Block a user