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.
- Since:
- 26.2
-
Nested Class Summary
Nested classes/interfaces inherited from class Event
Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionPlayerCodeOfConductSendEvent(PlayerConfigurationConnection connection, @Nullable String codeOfConduct) -
Method Summary
Modifier and TypeMethodDescription@Nullable StringGets 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
- Since:
- 26.2
-
getCodeOfConduct
Gets the code of conduct to be sent.- Returns:
- the code of conduct or null if none will be sent
- Since:
- 26.2
-
setCodeOfConduct
Sets the code of conduct to be sent.- Parameters:
codeOfConduct- the code of conduct or null to not send one- Since:
- 26.2
-
getHandlers
- Specified by:
getHandlersin classEvent- Since:
- 26.2
-
getHandlerList
- Since:
- 26.2
-