From cc55673207f1af103756008377e462fc20c91612 Mon Sep 17 00:00:00 2001 From: xGinko Date: Sat, 30 Mar 2024 21:06:19 +0100 Subject: [PATCH] fix playercount placeholders, closes #9 --- build.gradle.kts | 2 +- .../me/xginko/betterworldstats/config/LanguageCache.java | 4 ++-- src/main/resources/lang/de_de.yml | 4 ++-- src/main/resources/lang/en_us.yml | 8 +------- src/main/resources/lang/es_es.yml | 8 +------- src/main/resources/lang/ru_ru.yml | 8 +------- src/main/resources/lang/uk_ua.yml | 8 +------- src/main/resources/lang/zh_cn.yml | 8 +------- 8 files changed, 10 insertions(+), 40 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 45b3c06..d9b85a4 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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 diff --git a/src/main/java/me/xginko/betterworldstats/config/LanguageCache.java b/src/main/java/me/xginko/betterworldstats/config/LanguageCache.java index b10790d..cf599d7 100644 --- a/src/main/java/me/xginko/betterworldstats/config/LanguageCache.java +++ b/src/main/java/me/xginko/betterworldstats/config/LanguageCache.java @@ -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", "-----------------------------------------------------", - " The server has spawned %playerStats% player(s) at least once", + " The server has spawned %players% player(s) at least once", " The map is %years% year(s), %months% month(s) and %days% day(s) old", " The world is a total of %size% GB", "-----------------------------------------------------" diff --git a/src/main/resources/lang/de_de.yml b/src/main/resources/lang/de_de.yml index e547e10..e2516d8 100644 --- a/src/main/resources/lang/de_de.yml +++ b/src/main/resources/lang/de_de.yml @@ -3,10 +3,10 @@ # %months% # %days% # %size% -# %playerStats% +# %players% stats-message: - '-----------------------------------------------------' - - '%playerStats% Spieler sind dem Server mindestens einmal beigetreten. ' + - '%players% Spieler sind dem Server mindestens einmal beigetreten. ' - 'Die Welt ist %years% Jahr(e), %months% Monat(e) und %days% Tag(e) alt, mit einer' - 'Dateigröße von insgesamt %size% GB' - '-----------------------------------------------------' diff --git a/src/main/resources/lang/en_us.yml b/src/main/resources/lang/en_us.yml index e6b704e..acfd7d2 100644 --- a/src/main/resources/lang/en_us.yml +++ b/src/main/resources/lang/en_us.yml @@ -1,12 +1,6 @@ -# Placeholders: -# %years% -# %months% -# %days% -# %size% -# %playerStats% stats-message: - '-----------------------------------------------------' - - ' The server has spawned %playerStats% player(s) at least once' + - ' The server has spawned %players% player(s) at least once' - ' The map is %years% year(s), %months% month(s) and %days% day(s) old' - ' The world (with compression) is a total of %size% GB' - '-----------------------------------------------------' diff --git a/src/main/resources/lang/es_es.yml b/src/main/resources/lang/es_es.yml index deb05f0..f0c9b02 100644 --- a/src/main/resources/lang/es_es.yml +++ b/src/main/resources/lang/es_es.yml @@ -1,12 +1,6 @@ -# Placeholders: -# %years% -# %months% -# %days% -# %size% -# %playerStats% stats-message: - '-----------------------------------------------------' - - ' En en Server Spawnearon %playerStats% Jugador(s) Al menos una vez' + - ' En en Server Spawnearon %players% Jugador(s) Al menos una vez' - ' El Mapa Tiene %years% Años(s), %months% Meses(s) y %days% Dias(s) De antiguedad' - ' El Mundo (Comprimido) Es un total a %size% GB' - '-----------------------------------------------------' diff --git a/src/main/resources/lang/ru_ru.yml b/src/main/resources/lang/ru_ru.yml index b68579e..57be39b 100644 --- a/src/main/resources/lang/ru_ru.yml +++ b/src/main/resources/lang/ru_ru.yml @@ -1,12 +1,6 @@ -# Placeholders: -# %years% -# %months% -# %days% -# %size% -# %playerStats% stats-message: - '-----------------------------------------------------' - - ' Этот сервер посетило %playerStats% игрок(ов) за всё время' + - ' Этот сервер посетило %players% игрок(ов) за всё время' - ' Этому миру %years% год, %months% месяц и %days% день' - ' Мир весит %size% гигабайт' - '-----------------------------------------------------' diff --git a/src/main/resources/lang/uk_ua.yml b/src/main/resources/lang/uk_ua.yml index bb76d63..5517792 100644 --- a/src/main/resources/lang/uk_ua.yml +++ b/src/main/resources/lang/uk_ua.yml @@ -1,12 +1,6 @@ -# Placeholders: -# %years% -# %months% -# %days% -# %size% -# %playerStats% stats-message: - '-----------------------------------------------------' - - ' Цей сервер відвідало %playerStats% гравців за увесь час' + - ' Цей сервер відвідало %players% гравців за увесь час' - ' Цьому світу %years% років, %months% місяць та %days% день' - ' Світ вісить %size% гігабайт' - '-----------------------------------------------------' diff --git a/src/main/resources/lang/zh_cn.yml b/src/main/resources/lang/zh_cn.yml index 2472443..1c74c08 100644 --- a/src/main/resources/lang/zh_cn.yml +++ b/src/main/resources/lang/zh_cn.yml @@ -1,12 +1,6 @@ -# Placeholders: -# %years% -# %months% -# %days% -# %size% -# %playerStats% stats-message: - '-----------------------------------------------------' - - ' 这个服务器有 %playerStats% 个玩家加入过' + - ' 这个服务器有 %players% 个玩家加入过' - ' 该地图大小已有 %years% 年 %months% 月 %days% 日 之久' - ' 该世界大小已经达到了 %size% GB' - '-----------------------------------------------------'