This commit is contained in:
Jesse Boyd 2018-04-28 21:53:39 +10:00
parent 613d79fb39
commit 154bad6188
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 = UUIDHandler.getUUIDFromString(args[0]);
UUID user = args[0].length() >= 4 ? 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]);