Paper/paper-server/patches/sources/net/minecraft/server
Spottedleaf f5226d3739 Add PlayerConnectionCloseEvent
This event is invoked when a player has disconnected. It is guaranteed that,
if the server is in online-mode, that the provided uuid and username have been
validated.

The event is invoked for players who have not yet logged into the world, whereas
PlayerQuitEvent is only invoked on players who have logged into the world.

The event is invoked for players who have already logged into the world,
although whether or not the player exists in the world at the time of
firing is undefined. (That is, whether the plugin can retrieve a Player object
using the event parameters is undefined). However, it is guaranteed that this
event is invoked AFTER PlayerQuitEvent, if the player has already logged into
the world.

This event is guaranteed to never fire unless AsyncPlayerPreLoginEvent has
been called beforehand, and this event may not be called in parallel with
AsyncPlayerPreLoginEvent for the same connection.

Cancelling the AsyncPlayerPreLoginEvent guarantees the corresponding
PlayerConnectionCloseEvent is never called.

The event may be invoked asynchronously or synchronously. As it stands,
it is never invoked asynchronously. However, plugins should check
Event#isAsynchronous to be future-proof.

On purpose, the deprecated PlayerPreLoginEvent event is left out of the
API spec for this event. Plugins should not be using that event, and
how PlayerPreLoginEvent interacts with PlayerConnectionCloseEvent
is undefined.

== AT ==
public net.minecraft.server.network.ServerLoginPacketListenerImpl$State
public net.minecraft.server.network.ServerLoginPacketListenerImpl state
2018-10-07 12:05:28 -07:00
..
bossevents Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
commands Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
dedicated Use a Queue for Queueing Commands 2018-08-12 02:33:39 -04:00
gui Use TerminalConsoleAppender for console improvements 2017-06-09 19:03:43 +02:00
level force entity dismount during teleportation 2018-11-15 13:38:37 +00:00
network Add PlayerConnectionCloseEvent 2018-10-07 12:05:28 -07:00
packs Build system changes 2016-02-29 20:40:33 -06:00
players Use ConcurrentHashMap in JsonList 2018-08-07 01:24:23 -06:00
rcon Configurable RCON IP address 2016-04-16 00:39:33 -04:00
Bootstrap.java.patch Fix this stupid bullshit 2017-08-06 17:17:53 -05:00
Main.java.patch Basic PlayerProfile API 2018-01-15 22:11:48 -05:00
MinecraftServer.java.patch Optimize World Time Updates 2018-11-02 23:11:51 -04:00
PlayerAdvancements.java.patch Add PlayerAdvancementCriterionGrantEvent 2018-01-19 08:15:29 -06:00
ServerAdvancementManager.java.patch Configurable Advancement Disabling 2017-06-09 16:29:31 +10:00
ServerFunctionManager.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
ServerScoreboard.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
ServerTickRateManager.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
Services.java.patch Paper config files 2022-06-08 22:20:16 -07:00