mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 14:38:56 +00:00
NPC stuff from last update, forgot to commit (whoops)
This commit is contained in:
1 parent
6ae16787fc
commit
84cc8f00e2
6 files changed
+292
-21
No files matched your search
@@ -0,0 +1,37 @@
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user