mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 07:06:44 +01:00
usernames can be 2 characters
This commit is contained in:
parent
154bad6188
commit
72f30d8aef
@ -76,7 +76,7 @@ public class Visit extends Command {
|
|||||||
}
|
}
|
||||||
page = Integer.parseInt(args[1]);
|
page = Integer.parseInt(args[1]);
|
||||||
case 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 (user != null && !PS.get().hasPlot(user)) user = null;
|
||||||
if (page == Integer.MIN_VALUE && user == null && MathMan.isInteger(args[0])) {
|
if (page == Integer.MIN_VALUE && user == null && MathMan.isInteger(args[0])) {
|
||||||
page = Integer.parseInt(args[0]);
|
page = Integer.parseInt(args[0]);
|
||||||
|
Loading…
Reference in New Issue
Block a user