From 2b7054c519ffde85c57b9f5f26edc7b3e3614605 Mon Sep 17 00:00:00 2001 From: cuqmbr Date: Sun, 3 Aug 2025 10:50:37 +0300 Subject: [PATCH 1/5] fix database strings substitution before the change file database was used although mariadb was supposed to be used --- src/plugins/LibertyBans/sql.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/plugins/LibertyBans/sql.yml b/src/plugins/LibertyBans/sql.yml index 85f0617..8efff4d 100644 --- a/src/plugins/LibertyBans/sql.yml +++ b/src/plugins/LibertyBans/sql.yml @@ -77,11 +77,11 @@ timeouts: # Authentication details for remote databases: used for MariaDB, MySQL, PostgreSQL, and CockroachDB. auth-details: - database: 'minecraft_db' - password: '0000' - user: 'minecraft' - host: '127.0.0.1' - port: 3306 + host: '_LIBERTYBANS_DB_HOST_' + port: _LIBERTYBANS_DB_PORT_ + database: '_LIBERTYBANS_DB_NAME_' + user: '_LIBERTYBANS_DB_USERNAME_' + password: '_LIBERTYBANS_DB_PASSWORD_' # The values in this section only apply when using a MariaDB or MySQL database mariadb: @@ -111,7 +111,7 @@ use-traditional-jdbc-url: false # 'MYSQL' - Requires an external MySQL database. At least MySQL 8.0 is required. # 'POSTGRES' - Requires an external PostgreSQL database. At least PostgreSQL 12 is required. # 'COCKROACH' - Requires an external CockroachDB database. The latest CockroachDB is required. Warning: this option is strictly experimental. -rdms-vendor: 'HSQLDB' +rdms-vendor: 'MARIADB' # # How large should the connection pool be? # A thread pool of similar size is derived from the connection pool size. From 7741c86fc770f87fc4a8185cf529f801bc74730d Mon Sep 17 00:00:00 2001 From: cuqmbr Date: Sun, 3 Aug 2025 13:06:16 +0300 Subject: [PATCH 2/5] add website link to ban description in russian localization --- src/plugins/LibertyBans/lang/messages_en.yml | 1 - src/plugins/LibertyBans/lang/messages_ru.yml | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/plugins/LibertyBans/lang/messages_en.yml b/src/plugins/LibertyBans/lang/messages_en.yml index 89ff113..8003ef1 100644 --- a/src/plugins/LibertyBans/lang/messages_en.yml +++ b/src/plugins/LibertyBans/lang/messages_en.yml @@ -149,7 +149,6 @@ additions: - '' - '&3&lAppeal Your Punishment&f' - '&cWebsite: &7https://bebrashield.net&f' - - '&cDiscord: &7https://discord.gg/xsyy7d8RfG' permission: duration: '&cYou may not do this for &e%DURATION%&c.' both: '&cYou may not do this to players and their IP addresses.' diff --git a/src/plugins/LibertyBans/lang/messages_ru.yml b/src/plugins/LibertyBans/lang/messages_ru.yml index 9bc0561..b0e51f5 100644 --- a/src/plugins/LibertyBans/lang/messages_ru.yml +++ b/src/plugins/LibertyBans/lang/messages_ru.yml @@ -197,8 +197,8 @@ additions: - '&cПричина&f' - '&7%REASON%&f' - '' - - '&3По поводу разбана пишите в тех.поддержку:&f' - - '&cwww.support.com' + - '&3По поводу разбана пишите администрации:&f' + - '&cWebsite: &7https://bebrashield.net&f' permission: duration: '&cТебе нельзя банить на &e%DURATION%&c.' both: '&cВы не можете блокировать игроков.' From 266e1b6a223e3fdfaba906c9c8257deb61350837 Mon Sep 17 00:00:00 2001 From: cuqmbr Date: Sun, 3 Aug 2025 13:07:25 +0300 Subject: [PATCH 3/5] enable duration permissions in LibertyBans --- src/plugins/LibertyBans/config.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/plugins/LibertyBans/config.yml b/src/plugins/LibertyBans/config.yml index 88a9a0f..97c8951 100644 --- a/src/plugins/LibertyBans/config.yml +++ b/src/plugins/LibertyBans/config.yml @@ -9,11 +9,13 @@ durationPermissions: # Specify all the durations which you want to explicitly grant permission for. permissions-to-check: - 'perm' - - '4h' - - '30d' - - '10d' + - '7d' + - '14d' + - '28d' + - '90d' + - '180d' # If disabled, players are not checked for duration permissions. - enable: false + enable: true # Formatting of absolute dates date-formatting: @@ -25,7 +27,7 @@ date-formatting: # What language file should be used for messages? # For example, 'en' means LibertyBans will look for a file called 'messages_en.yml' -lang-file: 'en' +lang-file: 'ru' # Options related to punishment enforcement and alt account checking # # -- Alt Account Enforcement and Checking -- From 7da0770b586dbc47a8888e8f683d1352114d2051 Mon Sep 17 00:00:00 2001 From: cuqmbr Date: Sun, 3 Aug 2025 13:10:26 +0300 Subject: [PATCH 4/5] disable mute commands in CarbonChat before the change, CarbonChat mute command overrided LibertyBans mute command, player could not execute it --- src/plugins/CarbonChat/command-settings.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/CarbonChat/command-settings.conf b/src/plugins/CarbonChat/command-settings.conf index 804dfb5..381f0fb 100644 --- a/src/plugins/CarbonChat/command-settings.conf +++ b/src/plugins/CarbonChat/command-settings.conf @@ -43,7 +43,7 @@ settings { ] } "carbon:unmute" { - enabled=true + enabled=false name=unmute aliases=[] } @@ -100,7 +100,7 @@ settings { ] } "carbon:muteinfo" { - enabled=true + enabled=false name=muteinfo aliases=[ muted @@ -114,7 +114,7 @@ settings { ] } "carbon:mute" { - enabled=true + enabled=false name=mute aliases=[] } From f93a2208fdd3675707be77cca9ff42d5fa7b05de Mon Sep 17 00:00:00 2001 From: cuqmbr Date: Sun, 3 Aug 2025 22:55:01 +0300 Subject: [PATCH 5/5] disable prefix in LibertyBans messages --- src/plugins/LibertyBans/lang/messages_en.yml | 2 +- src/plugins/LibertyBans/lang/messages_ru.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/LibertyBans/lang/messages_en.yml b/src/plugins/LibertyBans/lang/messages_en.yml index 8003ef1..c3f1d1f 100644 --- a/src/plugins/LibertyBans/lang/messages_en.yml +++ b/src/plugins/LibertyBans/lang/messages_en.yml @@ -479,7 +479,7 @@ all: # The prefix to use value: '&6&lLibertyBans &8»&7 ' # If enabled, all messages will be prefixed - enable: true + enable: false # This section is only relevant if using the server scopes feature scopes: diff --git a/src/plugins/LibertyBans/lang/messages_ru.yml b/src/plugins/LibertyBans/lang/messages_ru.yml index b0e51f5..d79b7a5 100644 --- a/src/plugins/LibertyBans/lang/messages_ru.yml +++ b/src/plugins/LibertyBans/lang/messages_ru.yml @@ -134,7 +134,7 @@ all: base-permission-message: '&cТы уверен, что оно тебе нужно? К слову, права на эту команду у тебя нет.' prefix: # If enabled, all messages will be prefixed - enable: true + enable: false # The prefix to use value: '&6&lLibertyBans &8»&7 '