ProtocolLib/src/main/java/com/comphenix/protocol/injector
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
..
netty Remove inferences of SocketChannel presence in temporary player (#1188) 2021-06-04 18:21:48 -04:00
packet Initial support for 1.16 (#880) 2020-06-28 15:59:30 -04:00
player Remove a bunch of legacy (<1.8) code 2020-06-06 15:13:29 -04:00
server Remove inferences of SocketChannel presence in temporary player (#1188) 2021-06-04 18:21:48 -04:00
BukkitUnwrapper.java Migrate to Gradle with a single module 2018-09-22 17:48:06 -04:00
DelayedSingleTask.java Migrate to Gradle with a single module 2018-09-22 17:48:06 -04:00
EntityUtilities.java Fix get entity by ID with Citizens and HD 2019-12-17 19:41:53 -05:00
GamePhase.java Migrate to Gradle with a single module 2018-09-22 17:48:06 -04:00
InternalManager.java Migrate to Gradle with a single module 2018-09-22 17:48:06 -04:00
ListenerInvoker.java Remove a bunch of legacy (<1.8) code 2020-06-06 15:13:29 -04:00
NetworkProcessor.java Migrate to Gradle with a single module 2018-09-22 17:48:06 -04:00
PacketConstructor.java Remove a bunch of legacy (<1.8) code 2020-06-06 15:13:29 -04:00
PacketFilterBuilder.java Remove a bunch of legacy (<1.8) code 2020-06-06 15:13:29 -04:00
PacketFilterManager.java Remove a bunch of legacy (<1.8) code 2020-06-06 15:13:29 -04:00
PlayerInjectHooks.java Migrate to Gradle with a single module 2018-09-22 17:48:06 -04:00
PlayerLoggedOutException.java Migrate to Gradle with a single module 2018-09-22 17:48:06 -04:00
PluginVerifier.java Migrate to Gradle with a single module 2018-09-22 17:48:06 -04:00
PrioritizedListener.java Migrate to Gradle with a single module 2018-09-22 17:48:06 -04:00
SortedPacketListenerList.java Migrate to Gradle with a single module 2018-09-22 17:48:06 -04:00
StructureCache.java Remove a bunch of legacy (<1.8) code 2020-06-06 15:13:29 -04:00