diff --git a/src/main/java/me/chayapak1/chomens_bot/plugins/WhitelistPlugin.java b/src/main/java/me/chayapak1/chomens_bot/plugins/WhitelistPlugin.java index b8aad49..c89d09f 100644 --- a/src/main/java/me/chayapak1/chomens_bot/plugins/WhitelistPlugin.java +++ b/src/main/java/me/chayapak1/chomens_bot/plugins/WhitelistPlugin.java @@ -72,7 +72,7 @@ public class WhitelistPlugin extends PlayersPlugin.Listener { } public void commandReceived (PlayerEntry entry, String command) { - if (!enabled || list.contains(entry.profile.getName())) return; + if (!enabled || list.contains(entry.profile.getName()) || entry.profile.equals(bot.profile)) return; if ( command.startsWith("mute") || @@ -90,7 +90,7 @@ public class WhitelistPlugin extends PlayersPlugin.Listener { } private void handle (PlayerEntry entry) { - if (!enabled || list.contains(entry.profile.getName())) return; + if (!enabled || list.contains(entry.profile.getName()) || entry.profile.equals(bot.profile)) return; bot.filter.doAll(entry); }