Skip to content

Commit 33b5a3c

Browse files
committed
fix: disable Folia support in more metrics
1 parent e9a2591 commit 33b5a3c

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ These are the stats that are currently exported by the plugin.
9696
| Label | Description | Folia Support |
9797
|--------------------------|----------------------------------------------------|---------------|
9898
| mc_players_total | Unique players on server (online + offline) | ✅ |
99-
| mc_whitelisted_players | Players count on the white list | |
99+
| mc_whitelisted_players | Players count on the white list | |
100100
| mc_loaded_chunks_total | Chunks loaded per world | ❌ |
101101
| mc_players_online_total | Online players per world | ✅ |
102102
| mc_entities_total | Entities loaded per world (living + non-living) | ❌ |
@@ -133,8 +133,8 @@ This will enable the additional metrics.
133133
134134
| Label | Description | Folia |
135135
|---------------------|-----------------------------|-------|
136-
| mc_player_statistic | Player statistics | |
137-
| mc_player_online | Online state by player name | |
136+
| mc_player_statistic | Player statistics | |
137+
| mc_player_online | Online state by player name | |
138138
139139
There's a sample [dashboard](https://raw.githubusercontent.com/sladkoff/minecraft-prometheus-exporter/master/dashboards/minecraft-players-dashboard.json)
140140
available to get you started.

src/main/java/de/sldk/mc/metrics/PlayerMetric.java

-5
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,4 @@ protected String getNameOrUid(OfflinePlayer player) {
3232
return player.getName() != null ? player.getName() : player.getUniqueId().toString();
3333
}
3434

35-
@Override
36-
public boolean isFoliaCapable() {
37-
return true;
38-
}
39-
4035
}

src/main/java/de/sldk/mc/metrics/WhitelistedPlayers.java

-4
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,4 @@ public void doCollect() {
2020
PLAYERS.set(Bukkit.getWhitelistedPlayers().size());
2121
}
2222

23-
@Override
24-
public boolean isFoliaCapable() {
25-
return true;
26-
}
2723
}

0 commit comments

Comments
 (0)