Class PlayerCodeOfConductSendEvent
java.lang.Object
org.bukkit.event.Event
io.papermc.paper.event.connection.configuration.PlayerCodeOfConductSendEvent
This event is called when the code of conduct is potentially sent to the player.
-
Nested Class Summary
Nested classes/interfaces inherited from class Event
Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionPlayerCodeOfConductSendEvent(PlayerConfigurationConnection connection, @Nullable String codeOfConduct) -
Method Summary
Modifier and TypeMethodDescriptionGets the code of conduct to be sent.Gets the connection that will receive the code of conduct.static HandlerListvoidsetCodeOfConduct(@Nullable String codeOfConduct) Sets the code of conduct to be sent.Methods inherited from class Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
PlayerCodeOfConductSendEvent
@Internal public PlayerCodeOfConductSendEvent(PlayerConfigurationConnection connection, @Nullable String codeOfConduct)
-
-
Method Details
-
getConnection
Gets the connection that will receive the code of conduct.- Returns:
- connection
-
getCodeOfConduct
-
setCodeOfConduct
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getHandlerList
-