Skip to content

Commit

Permalink
fix playercount placeholders, closes #9
Browse files Browse the repository at this point in the history
  • Loading branch information
xGinko committed Mar 30, 2024
1 parent d2edd3d commit cc55673
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 40 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.1"
version = "1.10.2"
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
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ public LanguageCache(String language) throws Exception {

this.langFile.addComment(
"Command Placeholders:" +
"\n %size% | %spoofsize% | %playerStats% | %years% | %months% | %days%" +
"\n %size% | %spoofsize% | %players% | %years% | %months% | %days%" +
"\n %age_in_days% | %age_in_months% | %age_in_years% | %file_count% | %folder_count% | %chunk_count%" +
"\n %entity_count% "
);

this.world_stats_message_serialized = getListTranslation("stats-message",
"<dark_aqua>-----------------------------------------------------",
" <gray>The server has spawned <gold>%playerStats% player(s)<gray> at least once",
" <gray>The server has spawned <gold>%players% player(s)<gray> at least once",
" <gray>The map is <gold>%years% year(s)<gray>, <gold>%months% month(s)<gray> and <gold>%days% day(s)<gray> old",
" <gray>The world is a total of <gold>%size% GB",
"<dark_aqua>-----------------------------------------------------"
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/lang/de_de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
# %months%
# %days%
# %size%
# %playerStats%
# %players%
stats-message:
- '<dark_aqua>-----------------------------------------------------'
- '<gold>%playerStats% <grey>Spieler sind dem Server mindestens einmal beigetreten. '
- '<gold>%players% <grey>Spieler sind dem Server mindestens einmal beigetreten. '
- '<grey>Die Welt ist <gold>%years% Jahr(e)<grey>, <gold>%months% Monat(e) <grey>und <gold>%days% Tag(e) <grey>alt, mit einer'
- '<grey>Dateigröße von insgesamt <gold>%size% GB'
- '<dark_aqua>-----------------------------------------------------'
Expand Down
8 changes: 1 addition & 7 deletions src/main/resources/lang/en_us.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
# Placeholders:
# %years%
# %months%
# %days%
# %size%
# %playerStats%
stats-message:
- '<dark_aqua>-----------------------------------------------------'
- ' <grey>The server has spawned <gold>%playerStats% player(s)<grey> at least once'
- ' <grey>The server has spawned <gold>%players% player(s)<grey> at least once'
- ' <grey>The map is <gold>%years% year(s)<grey>, <gold>%months% month(s)<grey> and <gold>%days% day(s)<grey> old'
- ' <grey>The world (with compression) is a total of <gold>%size% GB'
- '<dark_aqua>-----------------------------------------------------'
Expand Down
8 changes: 1 addition & 7 deletions src/main/resources/lang/es_es.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
# Placeholders:
# %years%
# %months%
# %days%
# %size%
# %playerStats%
stats-message:
- '<dark_aqua>-----------------------------------------------------'
- ' <grey>En en Server Spawnearon <gold>%playerStats% Jugador(s)<grey> Al menos una vez'
- ' <grey>En en Server Spawnearon <gold>%players% Jugador(s)<grey> Al menos una vez'
- ' <grey>El Mapa Tiene <gold>%years% Años(s)<grey>, <gold>%months% Meses(s)<grey> y <gold>%days% Dias(s)<grey> De antiguedad'
- ' <grey>El Mundo (Comprimido) Es un total a <gold>%size% GB'
- '<dark_aqua>-----------------------------------------------------'
Expand Down
8 changes: 1 addition & 7 deletions src/main/resources/lang/ru_ru.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
# Placeholders:
# %years%
# %months%
# %days%
# %size%
# %playerStats%
stats-message:
- '<dark_aqua>-----------------------------------------------------'
- ' <grey>Этот сервер посетило <gold>%playerStats% игрок(ов)<grey> за всё время'
- ' <grey>Этот сервер посетило <gold>%players% игрок(ов)<grey> за всё время'
- ' <grey>Этому миру <gold>%years% год<grey>, <gold>%months% месяц<grey> и <gold>%days% день'
- ' <grey>Мир весит <gold>%size% гигабайт'
- '<dark_aqua>-----------------------------------------------------'
Expand Down
8 changes: 1 addition & 7 deletions src/main/resources/lang/uk_ua.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
# Placeholders:
# %years%
# %months%
# %days%
# %size%
# %playerStats%
stats-message:
- '<dark_aqua>-----------------------------------------------------'
- ' <grey>Цей сервер відвідало <gold>%playerStats% гравців <grey> за увесь час'
- ' <grey>Цей сервер відвідало <gold>%players% гравців <grey> за увесь час'
- ' <grey>Цьому світу <gold>%years% років<grey>, <gold>%months% місяць<grey> та <gold>%days% день'
- ' <grey>Світ вісить <gold>%size% гігабайт'
- '<dark_aqua>-----------------------------------------------------'
Expand Down
8 changes: 1 addition & 7 deletions src/main/resources/lang/zh_cn.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
# Placeholders:
# %years%
# %months%
# %days%
# %size%
# %playerStats%
stats-message:
- '<dark_aqua>-----------------------------------------------------'
- ' <grey>这个服务器有 <gold>%playerStats% 个玩家加入过'
- ' <grey>这个服务器有 <gold>%players% 个玩家加入过'
- ' <grey>该地图大小已有 <gold>%years% 年 <gold>%months% 月 <gold>%days% 日<grey> 之久'
- ' <grey>该世界大小已经达到了 <gold>%size% GB'
- '<dark_aqua>-----------------------------------------------------'
Expand Down

0 comments on commit cc55673

Please # to comment.