Skip to content

Commit

Permalink
fix placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
xGinko committed Mar 28, 2024
1 parent 7d959e5 commit d2edd3d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group = "me.xginko.betterworldstats"
version = "1.10.0"
version = "1.10.1"
description = "Show stats about server age, map size and unique player joins on your minecraft server."
java.sourceCompatibility = JavaVersion.VERSION_1_8
java.targetCompatibility = JavaVersion.VERSION_1_8
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/me/xginko/betterworldstats/config/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ public Config() throws Exception {
"\n %worldstats_age_in_years%" +
"\n %worldstats_file_count%" +
"\n %worldstats_folder_count%" +
"\n %worldstats_chunk_file_count%");
"\n %worldstats_entity_count%" +
"\n %worldstats_chunk_count%");
this.configFile.addComment("These PAPI placeholders return the same values as in the command:" +
"\n %worldstats_days%" +
"\n %worldstats_months%" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import me.xginko.betterworldstats.utils.PAPIUtil;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.minimessage.MiniMessage;
import net.kyori.adventure.text.minimessage.tag.resolver.TagResolver;
import org.bukkit.command.CommandSender;
import org.jetbrains.annotations.NotNull;

Expand Down Expand Up @@ -76,7 +75,7 @@ public LanguageCache(String language) throws Exception {
line.replace("%years%", years)
.replace("%months%", months)
.replace("%days%", days)
.replace("%playerStats%", players)
.replace("%players%", players)
.replace("%size%", fileSize)
.replace("%spoofsize%", spoofSize)
.replace("%age_in_days%", ageAsDays)
Expand Down

0 comments on commit d2edd3d

Please # to comment.