mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-07 13:03:06 +00:00
Fixed offline player UUID cache issue.
This commit is contained in:
parent
1fd8b18d6f
commit
f116b13cc7
7 changed files with 17 additions and 24 deletions
|
@ -201,7 +201,8 @@ public class UUIDHandler {
|
|||
}
|
||||
|
||||
// check cache
|
||||
UUID uuid = UUIDHandler.uuidMap.get(name);
|
||||
StringWrapper wrap = new StringWrapper(name);
|
||||
UUID uuid = UUIDHandler.uuidMap.get(wrap);
|
||||
if (uuid != null) {
|
||||
return uuid;
|
||||
}
|
||||
|
@ -209,7 +210,9 @@ public class UUIDHandler {
|
|||
// Read from disk
|
||||
if (Settings.UUID_FROM_DISK) {
|
||||
OfflinePlayer op = Bukkit.getOfflinePlayer(name);
|
||||
return UUIDHandler.uuidWrapper.getUUID(op);
|
||||
uuid = UUIDHandler.uuidWrapper.getUUID(op);
|
||||
add(new StringWrapper(name), uuid);
|
||||
return uuid;
|
||||
}
|
||||
|
||||
return null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue