From 20104bc304f1f86c59aec3057550a1b3026235b8 Mon Sep 17 00:00:00 2001 From: Daniel Saukel Date: Tue, 14 Jul 2015 18:28:56 +0200 Subject: [PATCH] Small fix, UUIDs are now stored as strings --- src/com/dre/dungeonsxl/DSavePlayer.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/com/dre/dungeonsxl/DSavePlayer.java b/src/com/dre/dungeonsxl/DSavePlayer.java index fb56e8f2..47c72297 100644 --- a/src/com/dre/dungeonsxl/DSavePlayer.java +++ b/src/com/dre/dungeonsxl/DSavePlayer.java @@ -25,7 +25,7 @@ public class DSavePlayer { // Variables private String playerName; - private UUID uuid; + private String uuid; private Location oldLocation; private ItemStack[] oldInventory; @@ -43,7 +43,7 @@ public class DSavePlayer { savePlayers.add(this); this.playerName = playerName; - this.uuid = uuid; + this.uuid = uuid.toString(); this.oldLocation = oldLocation; this.oldInventory = oldInventory; @@ -81,7 +81,7 @@ public class DSavePlayer { DUtility.secureTeleport(onlinePlayer, this.oldLocation); } else { /* Player is offline */ - Player offlinePlayer = p.getOfflinePlayer(this.playerName, this.uuid, this.oldLocation); + Player offlinePlayer = p.getOfflinePlayer(this.playerName, UUID.fromString(uuid), this.oldLocation); if (offlinePlayer != null) { offlinePlayer.getInventory().setContents(this.oldInventory); offlinePlayer.getInventory().setArmorContents(this.oldArmor);