Implement OfflinePlayer#isConnected
This commit is contained in:
@@ -261,6 +261,13 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
||||
return this.server.getPlayer(this.getUniqueId()) != null;
|
||||
}
|
||||
|
||||
// Paper start
|
||||
@Override
|
||||
public boolean isConnected() {
|
||||
return !this.getHandle().hasDisconnected();
|
||||
}
|
||||
// Paper end
|
||||
|
||||
@Override
|
||||
public InetSocketAddress getAddress() {
|
||||
if (this.getHandle().connection.protocol() == null) return null;
|
||||
|
||||
Reference in New Issue
Block a user