Prevent people from locking themselves out of using commands to go unafk after having done just / (all commands start with / after all)
This commit is contained in:
parent
ac9cfc1b67
commit
46e763500f
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user