ProtocolLib/src/main/java/com/comphenix/protocol
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
..
async Remove a bunch of legacy (<1.8) code 2020-06-06 15:13:29 -04:00
collections Migrate to Gradle with a single module 2018-09-22 17:48:06 -04:00
concurrency Try to fix a null pointer 2019-08-07 11:34:59 -04:00
error Fix error filtering reports 2019-12-05 17:02:16 -05:00
events Add converter for game state ids 2021-02-27 15:38:05 -05:00
injector Remove inferences of SocketChannel presence in temporary player (#1188) 2021-06-04 18:21:48 -04:00
metrics Broaden throwable for misbehaving metrics plugins (#1078) 2021-02-03 09:39:04 -05:00
reflect Add support for Java 16 (#1120) 2021-04-04 23:03:05 -04:00
timing Initial support for 1.16 (#880) 2020-06-28 15:59:30 -04:00
updater Make sure all Spigot forks are included for updater purposes 2020-05-24 20:35:25 -04:00
utility Fixed protocol injection with latest netty on minecraft 1.11 and below (#1067) 2021-05-01 15:51:52 -04:00
wrappers WrappedServerPing: Properly translate MotD to components for RGB colors (#1152) 2021-05-02 17:43:32 -04:00
AsynchronousManager.java Remove a bunch of legacy (<1.8) code 2020-06-06 15:13:29 -04:00
CommandBase.java Migrate to Gradle with a single module 2018-09-22 17:48:06 -04:00
CommandFilter.java Migrate to Gradle with a single module 2018-09-22 17:48:06 -04:00
CommandPacket.java Move getPacketDescription from the command to HexDumper as a public API 2021-01-04 13:35:58 -05:00
CommandProtocol.java Migrate to Gradle with a single module 2018-09-22 17:48:06 -04:00
MultipleLinesPrompt.java Migrate to Gradle with a single module 2018-09-22 17:48:06 -04:00
package-info.java Migrate to Gradle with a single module 2018-09-22 17:48:06 -04:00
PacketLogging.java Update to Minecraft 1.14 2019-05-03 23:22:44 -04:00
PacketStream.java Migrate to Gradle with a single module 2018-09-22 17:48:06 -04:00
PacketType.java Update to 1.16.2 2020-08-24 13:19:49 -04:00
PacketTypeEnum.java Migrate to Gradle with a single module 2018-09-22 17:48:06 -04:00
PacketTypeLookup.java Initial support for 1.16 (#880) 2020-06-28 15:59:30 -04:00
PacketTypeParser.java Migrate to Gradle with a single module 2018-09-22 17:48:06 -04:00
ProtocolConfig.java Migrate to Gradle with a single module 2018-09-22 17:48:06 -04:00
ProtocolLib.java Fixed protocol injection with latest netty on minecraft 1.11 and below (#1067) 2021-05-01 15:51:52 -04:00
ProtocolLibrary.java Tested with 1.16.5 2021-01-24 17:14:32 -05:00
ProtocolLogger.java Try changing visibility on ProtocolLogger#init 2019-12-26 11:34:33 -05:00
ProtocolManager.java Remove a bunch of legacy (<1.8) code 2020-06-06 15:13:29 -04:00
RangeParser.java Migrate to Gradle with a single module 2018-09-22 17:48:06 -04:00