ProtocolLib/src/main/java/com/comphenix/protocol/injector/server
Camotoy 6f91bd23de
Remove inferences of SocketChannel presence in temporary player (#1188)
To note: this is yet another compatibility change for my Geyser work, but https://github.com/PaperMC/Paper/pull/5611 will also break without these changes as Unix domain sockets don't implement SocketChannel.

The temporary player method delegation directed the isOnline and getName methods to functions that require the channel to be an instance of SocketChannel, when this won't always be the case. To solve this, this PR redirects `getSocket().getRemoteSocketAddress()` to `injector.getAddress()` which returns the same value. To determine if the player is online, a new method is created in SocketInjector to determine if a connection is online (which also returns the same value as before this commit).
2021-06-04 18:21:48 -04:00
..
AbstractInputStreamLookup.java Migrate to Gradle with a single module 2018-09-22 17:48:06 -04:00
BukkitSocketInjector.java Remove inferences of SocketChannel presence in temporary player (#1188) 2021-06-04 18:21:48 -04:00
InputStreamLookupBuilder.java Migrate to Gradle with a single module 2018-09-22 17:48:06 -04:00
InputStreamReflectLookup.java Migrate to Gradle with a single module 2018-09-22 17:48:06 -04:00
QueuedSendPacket.java Migrate to Gradle with a single module 2018-09-22 17:48:06 -04:00
SocketInjector.java Remove inferences of SocketChannel presence in temporary player (#1188) 2021-06-04 18:21:48 -04:00
TemporaryPlayer.java Migrate to Gradle with a single module 2018-09-22 17:48:06 -04:00
TemporaryPlayerFactory.java Remove inferences of SocketChannel presence in temporary player (#1188) 2021-06-04 18:21:48 -04:00