Class UserConnectEvent
java.lang.Object
com.github.retrooper.packetevents.event.PacketEvent
com.github.retrooper.packetevents.event.UserConnectEvent
- All Implemented Interfaces:
CallableEvent
,CancellableEvent
,UserEvent
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
call
(PacketListenerCommon listener) getUser()
boolean
This method returns if the event will be cancelled.void
setCancelled
(boolean cancelled) Cancel or proceed with the event.Methods inherited from class com.github.retrooper.packetevents.event.PacketEvent
callPacketEventExternal, getTimestamp
-
Constructor Details
-
UserConnectEvent
-
-
Method Details
-
getUser
-
isCancelled
public boolean isCancelled()Description copied from interface:CancellableEvent
This method returns if the event will be cancelled.- Specified by:
isCancelled
in interfaceCancellableEvent
- Returns:
- Will the event be cancelled.
-
setCancelled
public void setCancelled(boolean cancelled) Description copied from interface:CancellableEvent
Cancel or proceed with the event.- Specified by:
setCancelled
in interfaceCancellableEvent
- Parameters:
cancelled
- Is the event cancelled
-
call
- Specified by:
call
in interfaceCallableEvent
-