Interface PlexPlayerView
public interface PlexPlayerView
Read-only view of a Plex player.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanfrozen()Returns whether the player is currently frozen.ips()Returns known IP addresses.booleanlockedUp()Returns whether the player is currently locked up.booleanmuted()Returns whether the player is currently muted.name()Returns the current or last known player name.Returns the player's punishment history.booleanReturns whether the player currently has staff-chat mode enabled.net.kyori.adventure.text.Componenttag()Returns the saved custom tag using Plex's visual formatting rules.uuid()Returns the player's UUID.
-
Method Details
-
uuid
-
name
String name()Returns the current or last known player name.- Returns:
- current or last known player name
-
tag
net.kyori.adventure.text.Component tag()Returns the saved custom tag using Plex's visual formatting rules. Does not include a rank prefix or additivePlayerPrefixEventprefixes.- Returns:
- custom tag, or an empty component when none is set
-
ips
-
punishments
List<PunishmentView> punishments()Returns the player's punishment history.- Returns:
- punishment history for the player
-
frozen
boolean frozen()Returns whether the player is currently frozen.- Returns:
- whether the player is currently frozen
-
muted
boolean muted()Returns whether the player is currently muted.- Returns:
- whether the player is currently muted
-
lockedUp
boolean lockedUp()Returns whether the player is currently locked up.- Returns:
- whether the player is currently locked up
-
staffChat
boolean staffChat()Returns whether the player currently has staff-chat mode enabled.When enabled, the player's normal chat input is routed to Plex staff chat and exposed through
StaffChatMessageEvent.- Returns:
- whether staff-chat mode is enabled
-