Ursprung
33d6a9ad53
Commit
eef545d282
@ -31,7 +31,6 @@ import java.util.List;
|
|||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
public class AprilCommand extends SWCommand {
|
public class AprilCommand extends SWCommand {
|
||||||
private static final Random random = new Random("AprilCommand".hashCode());
|
|
||||||
|
|
||||||
public AprilCommand() {
|
public AprilCommand() {
|
||||||
super("ai");
|
super("ai");
|
||||||
@ -41,6 +40,7 @@ public class AprilCommand extends SWCommand {
|
|||||||
public void genericCommand(Player player, String... prompt) {
|
public void genericCommand(Player player, String... prompt) {
|
||||||
SteamwarUser user = SteamwarUser.get(player.getName());
|
SteamwarUser user = SteamwarUser.get(player.getName());
|
||||||
String message = String.join(" ", prompt);
|
String message = String.join(" ", prompt);
|
||||||
|
Random random = new Random(message.hashCode());
|
||||||
SchematicSystem.MESSAGE.send("AI_START", player, message);
|
SchematicSystem.MESSAGE.send("AI_START", player, message);
|
||||||
try {
|
try {
|
||||||
Thread.sleep(random.nextInt(3000));
|
Thread.sleep(random.nextInt(3000));
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren