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" {
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=[]
}

View File

@ -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 --

View File

@ -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.'
@ -480,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:

View File

@ -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 '
@ -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Вы не можете блокировать игроков.'

View File

@ -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.