NPC stuff from last update, forgot to commit (whoops)

This commit is contained in:
Rammelkast committed 2016-07-28 11:36:13 +02:00
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;
}
}