Merge pull request 'feature-27-database-and-duration-permission-fix' (#35) from feature-27 into develop
All checks were successful
/ build-docker (push) Successful in 7m2s

Reviewed-on: #35
Reviewed-by: oznobys <oznobys@noreply.localhost>
This commit is contained in:
cuqmbr 2025-08-04 15:28:40 +00:00
commit 94cc77340a
5 changed files with 20 additions and 19 deletions

View File

@ -43,7 +43,7 @@ settings {
] ]
} }
"carbon:unmute" { "carbon:unmute" {
enabled=true enabled=false
name=unmute name=unmute
aliases=[] aliases=[]
} }
@ -100,7 +100,7 @@ settings {
] ]
} }
"carbon:muteinfo" { "carbon:muteinfo" {
enabled=true enabled=false
name=muteinfo name=muteinfo
aliases=[ aliases=[
muted muted
@ -114,7 +114,7 @@ settings {
] ]
} }
"carbon:mute" { "carbon:mute" {
enabled=true enabled=false
name=mute name=mute
aliases=[] aliases=[]
} }

View File

@ -9,11 +9,13 @@ durationPermissions:
# Specify all the durations which you want to explicitly grant permission for. # Specify all the durations which you want to explicitly grant permission for.
permissions-to-check: permissions-to-check:
- 'perm' - 'perm'
- '4h' - '7d'
- '30d' - '14d'
- '10d' - '28d'
- '90d'
- '180d'
# If disabled, players are not checked for duration permissions. # If disabled, players are not checked for duration permissions.
enable: false enable: true
# Formatting of absolute dates # Formatting of absolute dates
date-formatting: date-formatting:
@ -25,7 +27,7 @@ date-formatting:
# What language file should be used for messages? # What language file should be used for messages?
# For example, 'en' means LibertyBans will look for a file called 'messages_en.yml' # 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 # Options related to punishment enforcement and alt account checking
# #
# -- Alt Account Enforcement and Checking -- # -- Alt Account Enforcement and Checking --

View File

@ -149,7 +149,6 @@ additions:
- '' - ''
- '&3&lAppeal Your Punishment&f' - '&3&lAppeal Your Punishment&f'
- '&cWebsite: &7https://bebrashield.net&f' - '&cWebsite: &7https://bebrashield.net&f'
- '&cDiscord: &7https://discord.gg/xsyy7d8RfG'
permission: permission:
duration: '&cYou may not do this for &e%DURATION%&c.' duration: '&cYou may not do this for &e%DURATION%&c.'
both: '&cYou may not do this to players and their IP addresses.' both: '&cYou may not do this to players and their IP addresses.'
@ -480,7 +479,7 @@ all:
# The prefix to use # The prefix to use
value: '&6&lLibertyBans &8»&7 ' value: '&6&lLibertyBans &8»&7 '
# If enabled, all messages will be prefixed # If enabled, all messages will be prefixed
enable: true enable: false
# This section is only relevant if using the server scopes feature # This section is only relevant if using the server scopes feature
scopes: scopes:

View File

@ -134,7 +134,7 @@ all:
base-permission-message: '&cТы уверен, что оно тебе нужно? К слову, права на эту команду у тебя нет.' base-permission-message: '&cТы уверен, что оно тебе нужно? К слову, права на эту команду у тебя нет.'
prefix: prefix:
# If enabled, all messages will be prefixed # If enabled, all messages will be prefixed
enable: true enable: false
# The prefix to use # The prefix to use
value: '&6&lLibertyBans &8»&7 ' value: '&6&lLibertyBans &8»&7 '
@ -197,8 +197,8 @@ additions:
- '&cПричина&f' - '&cПричина&f'
- '&7%REASON%&f' - '&7%REASON%&f'
- '' - ''
- '&3По поводу разбана пишите в тех.поддержку:&f' - '&3По поводу разбана пишите администрации:&f'
- '&cwww.support.com' - '&cWebsite: &7https://bebrashield.net&f'
permission: permission:
duration: '&cТебе нельзя банить на &e%DURATION%&c.' duration: '&cТебе нельзя банить на &e%DURATION%&c.'
both: '&cВы не можете блокировать игроков.' both: '&cВы не можете блокировать игроков.'

View File

@ -77,11 +77,11 @@ timeouts:
# Authentication details for remote databases: used for MariaDB, MySQL, PostgreSQL, and CockroachDB. # Authentication details for remote databases: used for MariaDB, MySQL, PostgreSQL, and CockroachDB.
auth-details: auth-details:
database: 'minecraft_db' host: '_LIBERTYBANS_DB_HOST_'
password: '0000' port: _LIBERTYBANS_DB_PORT_
user: 'minecraft' database: '_LIBERTYBANS_DB_NAME_'
host: '127.0.0.1' user: '_LIBERTYBANS_DB_USERNAME_'
port: 3306 password: '_LIBERTYBANS_DB_PASSWORD_'
# The values in this section only apply when using a MariaDB or MySQL database # The values in this section only apply when using a MariaDB or MySQL database
mariadb: mariadb:
@ -111,7 +111,7 @@ use-traditional-jdbc-url: false
# 'MYSQL' - Requires an external MySQL database. At least MySQL 8.0 is required. # '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. # '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. # '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? # How large should the connection pool be?
# A thread pool of similar size is derived from the connection pool size. # A thread pool of similar size is derived from the connection pool size.