has_active_profile_fact
Returns 1 if player has an active profile, 0 otherwise — fact entry.
Entry Information
| Property | Value |
|---|---|
| Entry ID | has_active_profile_fact |
| Type | Fact |
| Color | Blue |
| Icon | mdi:account-check |
Description
Fact that returns the number of profiles a player has. / @Entry( "profile_count_fact", "Returns the number of profiles a player has", Colors.BLUE, "mdi:counter" ) @Tags("profiles", "fact") class ProfileCountFactEntry( override val id: String = "", override val name: String = "", @MultiLine @Help("A comment to keep track of what this fact is used for.") override val comment: String = "", @Help("If left empty, every player has its own group.") override val group: Ref<GroupEntry> = emptyRef(), ) : ReadableFactEntry { override fun readSinglePlayer(player: Player): FactData { return FactData(ProfilesAPI.getProfileCount(player)) } } /** Fact that returns 1 if the player has an active profile, 0 otherwise.
Fields
| Field | Type | Description |
|---|---|---|
comment | String | A comment to keep track of what this fact is used for. |
group | Ref<GroupEntry> | If left empty, every player has its own group. |
Usage Example
- entry: has_active_profile_fact
name: "Returns 1 if player has an active profile, 0 otherwise"
comment: ""
group: ""