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:
@@ -189,7 +189,7 @@ public class AFKDetector extends JavaPlugin implements Listener {
|
|||||||
UUID uuid = event.getPlayer().getUniqueId();
|
UUID uuid = event.getPlayer().getUniqueId();
|
||||||
String command = event.getMessage().toLowerCase();
|
String command = event.getMessage().toLowerCase();
|
||||||
|
|
||||||
if (commandHistory.checkForMatch(uuid, command)) {
|
if (command.length() <= 1 || commandHistory.checkForMatch(uuid, command)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user