mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-25 10:14:42 +02:00
@ -188,7 +188,13 @@ public class ExpireManager {
|
||||
last = dates.get(uuid);
|
||||
}
|
||||
else {
|
||||
final OfflinePlayer op = Bukkit.getOfflinePlayer(name);
|
||||
OfflinePlayer op;
|
||||
if (Settings.TWIN_MODE_UUID) {
|
||||
op = Bukkit.getOfflinePlayer(uuid);
|
||||
}
|
||||
else {
|
||||
op = Bukkit.getOfflinePlayer(name);
|
||||
}
|
||||
if (op.hasPlayedBefore()) {
|
||||
last = op.getLastPlayed();
|
||||
dates.put(uuid, last);
|
||||
|
@ -174,11 +174,13 @@ public class FileUUIDHandler extends UUIDHandlerImplementation {
|
||||
|
||||
if (getUUIDMap().size() == 0) {
|
||||
for (OfflinePlotPlayer op : uuidWrapper.getOfflinePlayers()) {
|
||||
if (op.getLastPlayed() != 0) {
|
||||
long last = op.getLastPlayed();
|
||||
if (last != 0) {
|
||||
String name = op.getName();
|
||||
StringWrapper wrap = new StringWrapper(name);
|
||||
UUID uuid = uuidWrapper.getUUID(op);
|
||||
toAdd.put(wrap, uuid);
|
||||
ExpireManager.dates.put(uuid, last);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user