mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-11-28 05:35:28 +01:00
one more)
This commit is contained in:
parent
9063febb9e
commit
3fbc40ae3a
@ -28,6 +28,7 @@ import java.util.Map;
|
|||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
|
|
||||||
|
import com.comphenix.protocol.ProtocolLib;
|
||||||
import com.comphenix.protocol.reflect.accessors.Accessors;
|
import com.comphenix.protocol.reflect.accessors.Accessors;
|
||||||
import com.comphenix.protocol.reflect.accessors.MethodAccessor;
|
import com.comphenix.protocol.reflect.accessors.MethodAccessor;
|
||||||
import com.comphenix.protocol.utility.ByteBuddyFactory;
|
import com.comphenix.protocol.utility.ByteBuddyFactory;
|
||||||
@ -104,11 +105,10 @@ class SerializedOfflinePlayer implements OfflinePlayer, Serializable {
|
|||||||
this.playedBefore = offline.hasPlayedBefore();
|
this.playedBefore = offline.hasPlayedBefore();
|
||||||
this.online = offline.isOnline();
|
this.online = offline.isOnline();
|
||||||
this.whitelisted = offline.isWhitelisted();
|
this.whitelisted = offline.isWhitelisted();
|
||||||
try {
|
if (ProtocolLib.isFolia) {
|
||||||
Class.forName("io.papermc.paper.threadedregions.RegionizedServer");
|
|
||||||
this.lastSeen = offline.getLastSeen();
|
this.lastSeen = offline.getLastSeen();
|
||||||
this.lastLogin = offline.getLastLogin();
|
this.lastLogin = offline.getLastLogin();
|
||||||
} catch (ClassNotFoundException ignored) {}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user