usernames can be 2 characters

This commit is contained in:
Jesse Boyd 2018-05-02 00:43:27 +10:00
parent 154bad6188
commit 72f30d8aef
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -76,7 +76,7 @@ public class Visit extends Command {
}
page = Integer.parseInt(args[1]);
case 1:
UUID user = args[0].length() >= 4 ? UUIDHandler.getUUIDFromString(args[0]) : null;
UUID user = args[0].length() >= 2 ? UUIDHandler.getUUIDFromString(args[0]) : null;
if (user != null && !PS.get().hasPlot(user)) user = null;
if (page == Integer.MIN_VALUE && user == null && MathMan.isInteger(args[0])) {
page = Integer.parseInt(args[0]);