primaryGroup
String primaryGroup()
Returns the player's primary group.
- Returns:
- the player's primary group
- Since:
- 2.0.0
Audience, Identified, Pointeredstatic final record booleanvoidapplyOptionalChatFilters(boolean applyOptionalChatFilters) booleanawareOf(CarbonPlayer other) channelForMessage(Component message) InventorySlot, or null if the slot is empty.booleandeafened()voiddeafened(boolean deafened) doubledistanceSquaredFrom(CarbonPlayer other) CarbonPlayer, or -1 if the players are not in the same world.groups()booleanbooleanhasPermission(String permission) ignoring()booleanvoidbooleanignoring(CarbonPlayer player) voidignoring(CarbonPlayer player,
boolean nowIgnoring) booleanvoidignoringDirectMessages(boolean ignoring) voidjoinChannel(ChatChannel channel) voidlastWhisperTarget(@Nullable UUID uuid) voidleaveChannel(ChatChannel channel) locale()booleanmuted()voidmuted(boolean muted) longvoidmuteExpiration(long epochMillis) nickname()voidbooleanonline()party()Party.booleansameWorldAs(CarbonPlayer other) voidselectedChannel(@Nullable ChatChannel chatChannel) voidsendMessageAsPlayer(String message) booleanspying()voidspying(boolean spying) username()uuid()booleanvanished()voidwhisperReplyTarget(@Nullable UUID uuid) clearResourcePacks, clearTitle, deleteMessage, deleteMessage, filterAudience, forEachAudience, hideBossBar, openBook, openBook, playSound, playSound, playSound, removeResourcePacks, removeResourcePacks, removeResourcePacks, removeResourcePacks, removeResourcePacks, resetTitle, sendActionBar, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, sendResourcePacks, sendResourcePacks, sendResourcePacks, sendTitlePart, showBossBar, showTitle, stopSound, stopSoundidentityget, getOrDefault, getOrDefaultFrom, pointersCarbonPlayer, or -1 if the players are not in the same world.other - the other playerother - the other playerThe display name is the effective or displayed name of a player. When the player has a nickname set, either through Carbon or the platform, it will be reflected here. Else, a plain text component representing the player's name may be returned.
Will always return false when Carbon's nickname management is disabled.
Will always return null when Carbon's nickname management is disabled.
Setting null will remove any current nickname.
Won't have any visible effect when Carbon's nickname management is disabled.
nickname - the new nicknameInventorySlot, or null if the slot is empty.slot - the inventory slot containing the itemchatChannel - the channelmessage - the message to be sentpermission - the permission to checkmuted - if the player is now mutedepochMillis - the expiration timeplayer - the potential source of a messageplayer - the potential source of a messageplayer - the player to be added/removednowIgnoring - if the player should be ignoredplayer - the player to be added/removednowIgnoring - if the player should be ignoredignoring - if the player is ignoring direct messagesmessage - the message to be sentuuid - the uuid of the reply targetuuid - the uuid of the whisper targetother - the other, potentially vanished, playerThe returned collection is immutable, use
joinChannel(ChatChannel) and leaveChannel(ChatChannel) to mutate.
channel - the channel to join.channel - the channel to leave.Party.applyOptionalChatFilters - if this player's using the optional chat filters