Package io.papermc.paper.connection
Interface PlayerConfigurationConnection
- All Superinterfaces:
PlayerCommonConnection
,PlayerConnection
,ReadablePlayerCookieConnection
,WritablePlayerCookieConnection
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Clears the players chat history and their local chat.void
Completes the configuration for this player, which will cause this player to reenter the game.void
현재 진행 중인 작업을 종료합니다.Returns the audience representing the player in configuration mode.com.mojang.authlib.GameProfile
플레이어의 Mojang 프로필을 가져옵니다.플레이어 발전 과제 데이터를 생성하고 가져옵니다.Gets the profile for this connection.Methods inherited from interface io.papermc.paper.connection.PlayerCommonConnection
getClientBrandName, getClientOption, getClientType, sendLinks, sendReportDetails, transfer
Methods inherited from interface io.papermc.paper.connection.PlayerConnection
disconnect, getAddress, getClientAddress, getHAProxyAddress, getVirtualHost, isTransferred
Methods inherited from interface io.papermc.paper.connection.ReadablePlayerCookieConnection
retrieveCookie
Methods inherited from interface io.papermc.paper.connection.WritablePlayerCookieConnection
storeCookie
-
Method Details
-
getAudience
Audience getAudience()Returns the audience representing the player in configuration mode. This can be used to interact with the Adventure API during the configuration stage. This is guaranteed to be an instance ofPlayerConfigurationConnection
- Returns:
- the configuring player audience
-
getProfile
PlayerProfile getProfile()Gets the profile for this connection.- Returns:
- profile
-
getGameProfile
com.mojang.authlib.GameProfile getGameProfile()플레이어의 Mojang 프로필을 가져옵니다.- Returns:
- Mojang 프로필
-
clearChat
void clearChat()Clears the players chat history and their local chat. -
completeReconfiguration
void completeReconfiguration()Completes the configuration for this player, which will cause this player to reenter the game.Note, this should be only be called if you are reconfiguring the player.
-
finishCurrentTask
void finishCurrentTask()현재 진행 중인 작업을 종료합니다. -
getOrCreateAdvancements
PlayerAdvancementData getOrCreateAdvancements()플레이어 발전 과제 데이터를 생성하고 가져옵니다.플레이어의 로그인이 완료되기 전에 생성되기에 중복 로그인으로 인한 데이터 증발 등 데이터 관리에 주의해주세요.
- Returns:
- 플레이어 발전 과제 데이터 (이미 생성된 경우 기존의 인스턴스를 가져옴)
-