Changelog since 1.4.2 • All reload issues fixed
• Multiple plugins using the API can now run safely
• An Identifier must be specified in the settings
PacketEvents.getSettings().setIdentifier(“my-anticheat-name”);
The identifier MUST be set before the PacketEvents.start(this) is called!
This identifier is used to have unique handler names, another plugin having the same identifier will cause errors.
So, keep it unique!
• WrappedPacketOutKeepAlive wrapper added
• PlayerUninjectEvent#isSync added, basically telling you if the uninjection has been called asynchronously or synchronously.
The event is still called synchronously!
Players are only uninjected synchronously when the server stops/reloads.
Meaning the event is called asynchronously when they manually leave the server or have been kicked.
• PacketEvents.getAPI().getPlayerUtilities() deprecated, use getPlayerUtils()
• PacketEvents.getAPI().getServerUtilities() deprecated, please use getServerUtils()
• PacketEvents.getAPI().getPlayerUtils().uninjectPlayerNow(Player) added, calling that method will synchronously uninject the player.