diff --git a/src/main/java/com/alttd/afkdectector/AFKDetector.java b/src/main/java/com/alttd/afkdectector/AFKDetector.java index fce8f61..c4cb014 100755 --- a/src/main/java/com/alttd/afkdectector/AFKDetector.java +++ b/src/main/java/com/alttd/afkdectector/AFKDetector.java @@ -189,7 +189,7 @@ public class AFKDetector extends JavaPlugin implements Listener { UUID uuid = event.getPlayer().getUniqueId(); String command = event.getMessage().toLowerCase(); - if (commandHistory.checkForMatch(uuid, command)) { + if (command.length() <= 1 || commandHistory.checkForMatch(uuid, command)) { return; }