File tree Expand file tree Collapse file tree 4 files changed +22
-8
lines changed
src/main/java/com/booksaw/betterTeams
team/storage/storageManager Expand file tree Collapse file tree 4 files changed +22
-8
lines changed Original file line number Diff line number Diff line change @@ -318,7 +318,6 @@ Improvements:
318318Bug Fixes:
319319- Fixed problem with rank permissions
320320
321-
3223214.0:
323322Features:
324323- Updated to 1.17
@@ -942,7 +941,7 @@ Bug Fixes:
942941Bug Fixes:
943942- Fixed bug when PlaceholderAPI is not installed on the server (#802)
944943
945- 3 .14.0:
944+ 4 .14.0:
946945
947946Features:
948947- Added support for Folia (#817) - Credit maiminhdung
@@ -957,7 +956,7 @@ Bug Fixes:
957956- Added missing keys to messages.yml (#850)
958957
959958
960- 3 .15.0:
959+ 4 .15.0:
961960
962961Features:
963962- Added luckperms context support, See [the dedicated wiki page](https://betterteams.booksaw.dev/docs/dependencies/LuckPerms) (#867) - Credit IpMind
@@ -971,18 +970,22 @@ Bug Fixes:
971970- Fixed messages not sending after a reload (#868) - Credit IpMind
972971- Fixed bug with /team anchor where ignoreBedRespawn was not working (#884) - Credeit gaboss44
973972
974- 3 .15.1:
973+ 4 .15.1:
975974
976975Bug Fixes:
977976- Fixed bug with messages being sent on older plugin versions (#888) - RVSkeLe
978977- Fixed an error when executing commands in a command block (#890) - RVSkeLe
979978- updated java version to 17 to fix Jitpack build (#886)
980979
981- 3.15.2:
980+ 4.15.2:
981+
982+ Improvements:
983+ - Added additional bstats metrics to better guide plugin design
982984
983985Bug fixes:
984986- Fixed luckperms based performance hit by putting it behind a feature flag
985987
988+
986989Headings:
987990Features:
988991
Original file line number Diff line number Diff line change 44 <modelVersion >4.0.0</modelVersion >
55 <groupId >com.booksaw.betterTeams</groupId >
66 <artifactId >BetterTeams</artifactId >
7- <version >4.15.1 </version >
7+ <version >4.15.2 </version >
88 <name >BetterTeams</name >
99 <packaging >jar</packaging >
1010 <description >Create teams to fight to be the best</description >
Original file line number Diff line number Diff line change 3535import com .booksaw .betterTeams .score .ScoreManagement ;
3636import com .booksaw .betterTeams .team .storage .StorageType ;
3737import com .booksaw .betterTeams .team .storage .convert .Converter ;
38+ import com .booksaw .betterTeams .team .storage .storageManager .SeparatedYamlStorageManager ;
3839import com .booksaw .betterTeams .team .storage .storageManager .YamlStorageManager ;
3940import com .booksaw .betterTeams .util .WebhookHandler ;
4041import com .tcoded .folialib .FoliaLib ;
@@ -491,6 +492,14 @@ public void setupMetrics() {
491492 metrics = new Metrics (this , pluginId );
492493 metrics .addCustomChart (new SimplePie ("language" , () -> getConfig ().getString ("language" )));
493494 metrics .addCustomChart (new SimplePie ("storage_type" , () -> getConfig ().getString ("storageType" )));
495+ metrics .addCustomChart (new SimplePie ("team_count" , () -> {
496+ if (Team .getTeamManager () instanceof SeparatedYamlStorageManager ) {
497+ return ((((SeparatedYamlStorageManager ) Team .getTeamManager ()).getTeamNameLookupSize () / 200 ) * 200 ) + "+" ;
498+
499+ }
500+ return null ;
501+ }));
502+ metrics .addCustomChart (new SimplePie ("player_count" , () -> ((Bukkit .getOnlinePlayers ().size () / 20 ) * 20 ) + "+" ));
494503 }
495504 }
496505
Original file line number Diff line number Diff line change 1616import org .bukkit .event .Listener ;
1717import org .bukkit .event .player .PlayerJoinEvent ;
1818import org .bukkit .event .player .PlayerQuitEvent ;
19- import org .bukkit .scheduler .BukkitRunnable ;
2019import org .jetbrains .annotations .Contract ;
2120import org .jetbrains .annotations .Nullable ;
2221
23-
2422import java .io .File ;
2523import java .io .IOException ;
2624import java .nio .file .Files ;
@@ -461,4 +459,8 @@ public void rebuildLookups() {
461459 saveChestClaims ();
462460 }
463461
462+ public int getTeamNameLookupSize () {
463+ return teamNameLookup .size ();
464+ }
465+
464466}
You can’t perform that action at this time.
0 commit comments