From 297aa6151dec99f649a338cf15d7bbf2cf7f301b Mon Sep 17 00:00:00 2001 From: YoyoNow Date: Thu, 31 Jul 2025 09:44:28 +0200 Subject: [PATCH] Pot fix RPlayer --- SpigotCore/SpigotCore_Main/src/de/steamwar/entity/RPlayer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SpigotCore/SpigotCore_Main/src/de/steamwar/entity/RPlayer.java b/SpigotCore/SpigotCore_Main/src/de/steamwar/entity/RPlayer.java index 0c383bfd..3596fc3f 100644 --- a/SpigotCore/SpigotCore_Main/src/de/steamwar/entity/RPlayer.java +++ b/SpigotCore/SpigotCore_Main/src/de/steamwar/entity/RPlayer.java @@ -35,6 +35,7 @@ import org.bukkit.Location; import org.bukkit.entity.EntityType; import org.bukkit.inventory.ItemStack; +import java.nio.charset.StandardCharsets; import java.util.Map; import java.util.UUID; import java.util.function.Consumer; @@ -70,7 +71,7 @@ public class RPlayer extends REntity { private final String name; public RPlayer(REntityServer server, UUID uuid, String name, Location location) { - super(server, EntityType.PLAYER, UUID.randomUUID(), location,0); + super(server, EntityType.PLAYER, UUID.nameUUIDFromBytes(uuid.toString().getBytes(StandardCharsets.UTF_8)), location,0); this.actualUUID = uuid; this.name = name; server.addEntity(this);