Class PulsePreLoginPacketEvent
java.lang.Object
org.bukkit.event.Event
dev.pulsemc.pulse.api.events.network.PulsePreLoginPacketEvent
- All Implemented Interfaces:
Cancellable
Triggered asynchronously for packets sent or received before the player has fully joined.
This includes Handshake, Status (Ping/MOTD), and Login phase packets.
Since the Bukkit Player object does not exist yet,
this event provides the connection's IP address instead.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionPulsePreLoginPacketEvent(@NotNull InetAddress address, @NotNull Object packet, boolean isIncoming) -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerListbooleanbooleanvoidsetCancelled(boolean cancel) voidMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
PulsePreLoginPacketEvent
-
-
Method Details
-
getAddress
-
getPacket
-
setPacket
-
isIncoming
public boolean isIncoming() -
getPacketName
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelledin interfaceCancellable
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getHandlerList
-