2
0
mirror of https://github.com/proxiodev/RedisBungee.git synced 2026-06-19 01:17:21 +00:00

Language system implementation, commands still not translatable yet, finish up configs system

This commit is contained in:
2023-10-01 14:31:49 +04:00
parent 32b5e829ba
commit 983693b929
13 changed files with 304 additions and 81 deletions
@@ -61,9 +61,8 @@ compatibility-max-connections: 3
# if this disabled override-bungee-commands will be ignored
register-commands: false
# THIS IS BUNGEECORD ONLY OPTION!
# Whether or not RedisBungee should install its version of regular BungeeCord commands.
# Whether RedisBungee should install its version of regular BungeeCord commands.
# Often, the RedisBungee commands are desired, but in some cases someone may wish to
# override the commands using another plugin.
#
@@ -75,23 +74,24 @@ register-commands: false
# ignored on velocity
override-bungee-commands: false
# A list of IP addresses for which RedisBungee will not modify the response for, useful for automatic
# restart scripts.
exempt-ip-addresses: []
# restore old login behavior before 0.9.0 update
# enabled by default
# when true: when player login and there is old player with same uuid it will get disconnected as result and new player will login
# when true: when player login and there is old player with same uuid it will get disconnected as result and new player will log in
# when false: when a player login but login will fail because old player is still connected.
kick-when-online: true
# enabled by default
# this option tells redis-bungee handle motd and set online count, when motd is requested
# this option tells RedisBungee handle motd and set online count, when motd is requested
# you can disable this when you want to handle motd yourself, use RedisBungee api to get total players when needed :)
handle-motd: true
# A list of IP addresses for which RedisBungee will not modify the response for, useful for automatic
# restart scripts.
# Ignored if handle-motd is disabled.
exempt-ip-addresses: []
# disabled by default
# Redis-bungee will attempt to connect player to last server that was stored.
# RedisBungee will attempt to connect player to last server that was stored.
reconnect-to-last-server: false
# Config version DO NOT CHANGE!!!!
+44 -35
View File
@@ -1,71 +1,80 @@
# this config file is for messages / Languages
# Note 1: use MiniMessage format https://docs.advntr.dev/minimessage/format.html
# use MiniMessage format https://docs.advntr.dev/minimessage/format.html
# for colors etc... Legacy chat color is not supported.
# Note 2:
# Language codes used in minecraft from the minecraft wiki
# example: en_us for american english and ar_sa for arabic
# example: en-us for american english and ar-sa for arabic
# all codes can be obtained from link below
# from the colum Locale Code -> In-game
# NOTE: minecraft wiki shows languages like this `en_us` in config it should be `en-us`
# https://minecraft.wiki/w/Language
# example:
# lets assume we want to add arabic language.
# errors:
# messages:
# logged-in-other-location:
# en_us: "<color:red>You logged in from another location!"
# ar_sa: "<color:red>لقد اتصلت من مكان اخر"
# en-us: "<color:red>You logged in from another location!"
# ar-sa: "<color:red>لقد اتصلت من مكان اخر"
# RedisBungee Prefix if ever used.
redis-bungee-prefix: "<color:red>[<color:yellow>Redis<color:red>Bungee]"
prefix: "<color:red>[<color:yellow>Redis<color:red>Bungee]"
# us_en is american English, Which is the default language used when a language for a message isn't defined.
# Warning: IF THE set default language wasn't defined in the config for all messages, plugin will not load.
# set the default language
default-language: en_us
# en-us is american English, Which is the default language used when a language for a message isn't defined.
# Warning: IF THE set default locale wasn't defined in the config for all messages, plugin will not load.
# set the Default locale
default-locale: en-us
# send language based on client sent settings
# if you don't have languages configured for client it will
# default to language that has been set above
use-client-language: true
# if you don't have languages configured For client Language
# it will default to language that has been set above
# NOTE: due minecraft protocol not sending player settings during login,
# some of the messages like logged-in-other-location will
# skip translation and use default locale that has been set in default-locale.
use-client-locale: true
# messages
# messages that are used during login, and connecting to Last server
messages:
logged-in-other-location:
en_us: "<color:red>You logged in from another location!"
ar_sa: "<color:red>لقد اتصلت من مكان اخر"
en-us: "<color:red>You logged in from another location!"
ar-sa: "<color:red>لقد اتصلت من مكان اخر"
already-logged-in:
en_us: "<color:red>You are already logged in!"
ar_sa: "<color:red>انت متصل بالفعل"
en-us: "<color:red>You are already logged in!"
ar-sa: "<color:red>انت متصل بالفعل"
server-not-found:
# placeholder <server> displays server name in the message.
en_us: "<color:red>unable to connect you to the last server, because server <server> was not found."
ar_sa: "<color:red>فشل الاتصال بالخادم السابق لان الخادم غير موجود (<server>)"
server-found:
en-us: "<color:red>unable to connect you to the last server, because server <server> was not found."
ar-sa: "<color:red>فشل الاتصال بالخادم السابق لان الخادم غير موجود (<server>)"
server-connecting:
# placeholder <server> displays server name in the message.
en_us: "<color:green>Connecting you to <server>..."
ar_sa: "<color:green>جاري الاتصال بخادم <server>"
en-us: "<color:green>Connecting you to <server>..."
ar-sa: "<color:green>جاري الاتصال بخادم <server>"
# commands common messages:
# commands common messages
commands-common:
player-not-found:
en_us: "<color:red>Player not found."
ar_sa: "<color:red>اللاعب غير موجود"
en-us: "<color:red>Player not found."
ar-sa: "<color:red>اللاعب غير موجود"
player-not-specified:
en_us: "<color:red>You must specify a player name."
ar_sa: "<color:red>أدخل اسم اللاعب مطلوب"
en-us: "<color:red>You must specify a player name."
ar-sa: "<color:red>أدخل اسم اللاعب مطلوب"
command-not-specified:
en_us: "<color:red>You must specify a command to be run."
ar_sa: "<color:red>ادخل الأمر المطلوب"
en-us: "<color:red>You must specify a command to be run."
ar-sa: "<color:red>ادخل الأمر المطلوب"
# commands
commands:
glist:
single-player:
en-us: "<color:yellow><players> player is currently online"
players:
en-us: "<color:yellow><players> players are currently online"
notice:
en-us: "<color:yellow>To see all players online, use /glist showall."
# DO NOT CHANGE!!!!!
config-version: 1