Interface PlayerChangeClientSettingsEvent
-
- All Superinterfaces:
Event
public interface PlayerChangeClientSettingsEvent extends Event
Fired when aplayer
changes one or more of the following settings.- Locale
- View distance
- Chat visibility
- Chat colors
- Displayed skin parts
The event is fired before the player object is updated so it is possible to inspect the old settings.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ChatVisibility
chatVisibility()
Gets the new chat visibility setting of the player.Set<SkinPart>
displayedSkinParts()
Gets the new skin part's displayed.boolean
isChatColorsEnabled()
Gets the new value for whether the player has colors enabled in chat.Locale
locale()
Gets the new locale of the player.ServerPlayer
player()
Gets theplayer
.int
viewDistance()
Gets the new view distance of the player.
-
-
-
Method Detail
-
player
ServerPlayer player()
Gets theplayer
.- Returns:
- The player
-
locale
Locale locale()
Gets the new locale of the player.- Returns:
- The locale
-
viewDistance
int viewDistance()
Gets the new view distance of the player. This value represents the radius in unit chunks.- Returns:
- The view distance
-
chatVisibility
ChatVisibility chatVisibility()
Gets the new chat visibility setting of the player.- Returns:
- The chat visibility setting
-
isChatColorsEnabled
boolean isChatColorsEnabled()
Gets the new value for whether the player has colors enabled in chat.- Returns:
- True if colors are enabled in chat
-
-