Skip to content

Commit 745069f

Browse files
committed
4.15.2
1 parent bfa05fd commit 745069f

File tree

4 files changed

+22
-8
lines changed

4 files changed

+22
-8
lines changed

changelog.txt

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,6 @@ Improvements:
318318
Bug Fixes:
319319
- Fixed problem with rank permissions
320320

321-
322321
4.0:
323322
Features:
324323
- Updated to 1.17
@@ -942,7 +941,7 @@ Bug Fixes:
942941
Bug Fixes:
943942
- Fixed bug when PlaceholderAPI is not installed on the server (#802)
944943

945-
3.14.0:
944+
4.14.0:
946945

947946
Features:
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

962961
Features:
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

976975
Bug 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

983985
Bug fixes:
984986
- Fixed luckperms based performance hit by putting it behind a feature flag
985987

988+
986989
Headings:
987990
Features:
988991

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
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>

src/main/java/com/booksaw/betterTeams/Main.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
import com.booksaw.betterTeams.score.ScoreManagement;
3636
import com.booksaw.betterTeams.team.storage.StorageType;
3737
import com.booksaw.betterTeams.team.storage.convert.Converter;
38+
import com.booksaw.betterTeams.team.storage.storageManager.SeparatedYamlStorageManager;
3839
import com.booksaw.betterTeams.team.storage.storageManager.YamlStorageManager;
3940
import com.booksaw.betterTeams.util.WebhookHandler;
4041
import 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

src/main/java/com/booksaw/betterTeams/team/storage/storageManager/SeparatedYamlStorageManager.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@
1616
import org.bukkit.event.Listener;
1717
import org.bukkit.event.player.PlayerJoinEvent;
1818
import org.bukkit.event.player.PlayerQuitEvent;
19-
import org.bukkit.scheduler.BukkitRunnable;
2019
import org.jetbrains.annotations.Contract;
2120
import org.jetbrains.annotations.Nullable;
2221

23-
2422
import java.io.File;
2523
import java.io.IOException;
2624
import 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
}

0 commit comments

Comments
 (0)