From eef545d28261a927fd3d3c90227c2c01c54fc0b6 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Sat, 1 Apr 2023 14:29:52 +0200 Subject: [PATCH] Fix AI --- .../src/de/steamwar/schematicsystem/commands/AprilCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SchematicSystem_Core/src/de/steamwar/schematicsystem/commands/AprilCommand.java b/SchematicSystem_Core/src/de/steamwar/schematicsystem/commands/AprilCommand.java index 51a26d6..7e5fb78 100644 --- a/SchematicSystem_Core/src/de/steamwar/schematicsystem/commands/AprilCommand.java +++ b/SchematicSystem_Core/src/de/steamwar/schematicsystem/commands/AprilCommand.java @@ -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));