13
0

Fix AI
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Chaoscaot 2023-04-01 14:29:52 +02:00
Ursprung 33d6a9ad53
Commit eef545d282

Datei anzeigen

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