mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-24 19:45:43 +01:00
Small fix, UUIDs are now stored as strings
This commit is contained in:
parent
09cba5cc32
commit
20104bc304
@ -25,7 +25,7 @@ public class DSavePlayer {
|
|||||||
|
|
||||||
// Variables
|
// Variables
|
||||||
private String playerName;
|
private String playerName;
|
||||||
private UUID uuid;
|
private String uuid;
|
||||||
|
|
||||||
private Location oldLocation;
|
private Location oldLocation;
|
||||||
private ItemStack[] oldInventory;
|
private ItemStack[] oldInventory;
|
||||||
@ -43,7 +43,7 @@ public class DSavePlayer {
|
|||||||
savePlayers.add(this);
|
savePlayers.add(this);
|
||||||
|
|
||||||
this.playerName = playerName;
|
this.playerName = playerName;
|
||||||
this.uuid = uuid;
|
this.uuid = uuid.toString();
|
||||||
|
|
||||||
this.oldLocation = oldLocation;
|
this.oldLocation = oldLocation;
|
||||||
this.oldInventory = oldInventory;
|
this.oldInventory = oldInventory;
|
||||||
@ -81,7 +81,7 @@ public class DSavePlayer {
|
|||||||
DUtility.secureTeleport(onlinePlayer, this.oldLocation);
|
DUtility.secureTeleport(onlinePlayer, this.oldLocation);
|
||||||
} else {
|
} else {
|
||||||
/* Player is offline */
|
/* 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) {
|
if (offlinePlayer != null) {
|
||||||
offlinePlayer.getInventory().setContents(this.oldInventory);
|
offlinePlayer.getInventory().setContents(this.oldInventory);
|
||||||
offlinePlayer.getInventory().setArmorContents(this.oldArmor);
|
offlinePlayer.getInventory().setArmorContents(this.oldArmor);
|
||||||
|
Loading…
Reference in New Issue
Block a user