Class PlayerCodeOfConductSendEvent

java.lang.Object
org.bukkit.event.Event
io.papermc.paper.event.connection.configuration.PlayerCodeOfConductSendEvent

@NullMarked public class PlayerCodeOfConductSendEvent extends Event
This event is called when the code of conduct is potentially sent to the player.
  • Constructor Details

  • Method Details

    • getConnection

      public PlayerCommonConnection getConnection()
      Gets the connection that will receive the code of conduct.
      Returns:
      connection
    • getCodeOfConduct

      public @Nullable String getCodeOfConduct()
      Gets the code of conduct to be sent.
      Returns:
      the code of conduct or null if none will be sent
    • setCodeOfConduct

      public void setCodeOfConduct(@Nullable String codeOfConduct)
      Sets the code of conduct to be sent.
      Parameters:
      codeOfConduct - the code of conduct or null to not send one
    • getHandlers

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      public static HandlerList getHandlerList()