Class ConfigurationClientTypeDetectedEvent


@NullMarked public final class ConfigurationClientTypeDetectedEvent extends ConfigurationPhaseEvent
Configuration 페이즈에서 플레이어의 클라이언트 종류를 감지 완료하였을 때 호출됩니다.
  • Constructor Details

    • ConfigurationClientTypeDetectedEvent

      @Internal public ConfigurationClientTypeDetectedEvent(Player who)
  • Method Details

    • clientType

      public ClientType clientType()
      감지된 클라이언트의 타입을 가져옵니다.
      Returns:
      클라이언트의 타입
    • clientBrandName

      public @Nullable String clientBrandName()
      클라이언트의 브랜드 이름을 가져옵니다.
      Returns:
      브랜드 이름 (수정된 클라이언트가 서버로 정보를 전송하지 않을 수도 있음)
    • disconnectReason

      public @Nullable Component disconnectReason()
      플레이어 추방 사유를 가져옵니다.
      Returns:
      플레이어 추방 사유
    • disconnectReason

      public void disconnectReason(@Nullable Component disconnectReason)
      플레이어를 서버에서 추방하기로 큰 결심을 한 경우, 추방 사유를 설정합니다.
      Parameters:
      disconnectReason - 플레이어 추방 사유 (null인 경우 추방하지 않습니다.)
    • getHandlers

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

      public static HandlerList getHandlerList()