mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 14:38:56 +00:00
38 lines
744 B
Java
38 lines
744 B
Java
package net.gravitydevelopment.anticheat.util;
|
|
|
|
import java.util.Arrays;
|
|
import java.util.List;
|
|
import java.util.Random;
|
|
|
|
public class NameGenerator {
|
|
|
|
private static final List<String> BEGIN = Arrays.asList(new String[]{
|
|
"Pixel",
|
|
"Pro",
|
|
"NoHax",
|
|
"Just",
|
|
"That",
|
|
"New"
|
|
});
|
|
|
|
private static final List<String> END = Arrays.asList(new String[]{
|
|
"Gamer",
|
|
"PvP",
|
|
"JustYolo",
|
|
"Gaming",
|
|
"Minecraft",
|
|
"Games"
|
|
});
|
|
|
|
public static String generateName() {
|
|
Random r = new Random();
|
|
String begin = BEGIN.get(r.nextInt(BEGIN.size() - 1));
|
|
String end = END.get(r.nextInt(END.size() - 1));
|
|
if (r.nextBoolean())
|
|
return begin + end + r.nextInt(9);
|
|
else
|
|
return begin + end;
|
|
}
|
|
|
|
}
|