Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
254 lines (241 sloc)
11.2 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This will be ignored if 'bungeecord' is enabled and local storage is being used. | |
# If using non-local storage, please make sure this matches what's on BungeeCord. | |
languages: | |
# The language name. This will influence the language key in the translation files. | |
# It's recommended to follow this syntax: xx_XX | |
# It's also not recommended changing this after someone has joined your server, | |
# as their language will reset to default. | |
en_GB: | |
# This is the encoded flag code to show up the banner. | |
# To get a working code, you should visit https://www.needcoolshoes.com/banner and create your banner. | |
# When you finish, you should notice that the link as changed. Just copy the code generated by it. | |
# i.e. If the link is https://www.needcoolshoes.com/banner?=eapwplpnpmbzbj then the code will be eapwplpnpmbzbj | |
flag: eapwplpnpmbzbj | |
# The Minecraft code is the Minecraft language code. You can find a complete list here: | |
# https://minecraft.gamepedia.com/Language | |
minecraft-code: [ en_GB, en_AU, en_CA, en_NZ, en_PT, en_UD, en_US ] | |
# The display name. This will be the language name in non-code version. For example, en_UK should be English (UK) | |
# Feel free to use colours here! | |
display-name: '&3English (UK)' | |
# The languages to check for translations when this language does not have them. | |
# The main language is also always checked last, even if you leave this empty. | |
fallback-languages: | |
- pt_PT | |
# Use this to run commands on language change. | |
# The commands must not start with a slash. | |
# Prefix with the desired type. Available types: 'PLAYER', 'SERVER' | |
# i. e. "PLAYER:say I'm using English now!" | |
# Please uncomment the lines below to start using this feature. | |
# Available variables: | |
# %player% - Replaced with the player's name. | |
# %uuid% - Replaced with the player's UUID (with dashes). | |
# commands: | |
# - 'SERVER:say %player% (%uuid%) has just changed their language!' | |
pt_PT: | |
flag: bacLlt | |
minecraft-code: [ pt_PT, pt_BR ] | |
display-name: '&3Portuguese (Portugal)' | |
fallback-languages: [] | |
# commands: | |
# - 'SERVER:say %player% (%uuid%) has just changed their language!' | |
# The main language is the fallback language. If some message is not found, it will try to get it from here before | |
# returning an error message. | |
# Also, if you delete any language, the players with that language will have their language changed to this. | |
main-language: en_GB | |
# If you want to open a custom menu (or even just execute a custom command) instead of opening Triton's default | |
# language selector menu, put the command here, without the first slash (/). | |
# Instead of opening the language menu, Triton will execute this command as the player. | |
# E.g. "dm open language" | |
open-selector-command-override: null | |
# When enabled, the commands inside each language will run when the player joins. | |
run-language-commands-on-join: false | |
# When enabled, the plugin will set the player's Triton language to their game language every time. | |
# By default, the plugin only does this when they join the server for the first time. | |
# It is recommended to leave this off for user experience reasons. | |
# Ignored when bungeecord is enabled. | |
force-client-locale-on-join: false | |
# Automatically reload the plugin (equivalent to /twin reload) every X seconds. | |
# Might be useful if you're editing the translations' folder with symlinks or another program. | |
# Set to -1 to disable (default) | |
config-auto-refresh-interval: -1 | |
# Enable this if you're using the plugin on BungeeCord. | |
# A restart of the server and BungeeCord might be required after changing this setting. | |
bungeecord: false | |
# To access TWIN, you need a special token. | |
# To get it, join our Discord server at https://triton.rexcantor64.com/discord or DM me on Spigot. | |
# If you've enabled "bungeecord" above, there is no need to put your token here. You just need it on your BungeeCord config. | |
twin-token: "" | |
# Triton command aliases. | |
# Add or remove aliases here to customize which commands are detected by Triton. | |
# The /triton command cannot be edited. | |
command-aliases: | |
- lang | |
- language | |
# Determines how verbose the logging will be. A lower value means less verbose. | |
# 0 (default): Corresponds to INFO. Logs useful information, such as successfully loading configurations. | |
# 1: Corresponds to DEBUG. Logs more detailed information about each event. | |
# 2: Corresponds to TRACE. Logs every action made by the plugin. Useful for reporting issues, but will print a lot of information. | |
log-level: 0 | |
# This section controls the storage location of player data and translations. | |
# If using a database, the tables/collections will be created automatically for you. | |
# You can use '/triton database upload' to upload the local translations to a remote storage. | |
# This MUST match what is on BungeeCord | |
storage: | |
# Valid options: 'local', 'mysql' | |
type: 'local' | |
# This should match the name of this server in BungeeCord's config.yml | |
# Used to filter translations for this server only | |
server-name: 'lobby' | |
# The options below this are for non-local storage only | |
host: "localhost" | |
port: 3306 | |
database: "triton" | |
username: "root" | |
password: "" | |
table-prefix: "triton_" | |
# Configuration options for HikariCP | |
# Do not change if you don't know what you're doing! | |
mysql-pool-advanced: | |
# Sets the maximum size of the MySQL connection pool. | |
# https://github.com/brettwooldridge/HikariCP/wiki/About-Pool-Sizing | |
maximum-pool-size: 10 | |
# Sets the minimum number of idle connections that the pool will try to maintain. | |
minimum-idle: 10 | |
# This setting controls the maximum lifetime of a connection in the pool in milliseconds. | |
maximum-lifetime: 1800000 # 30 minutes | |
# This setting controls the maximum number of milliseconds that the plugin will wait for a | |
# connection from the pool, before timing out. | |
connection-timeout: 5000 # 5 seconds | |
# This setting allows you to define extra properties for connections. | |
properties: | |
# useUnicode: true | |
# characterEncoding: utf8 | |
# useSSL: false | |
# verifyServerCertificate: false | |
# EXPERIMENTAL: Intercept and parse ProtocolLib packets asynchronously. | |
# This might cause incompatibilities with other plugins. | |
# When stable, this will be enabled by default. | |
# Changing this REQUIRES a server restart. | |
experimental-async-protocol-lib: false | |
# Here you can enable and disable certain features of the plugin. | |
# Every section contains a "syntax-lang", "syntax-args" and "syntax-arg" field. These are used in the placeholders. | |
# If you change them, make sure to adjust accordingly in your plugins. | |
language-creation: | |
chat: | |
# Should the plugin check for placeholders in chat messages? | |
enabled: true | |
syntax-lang: lang | |
syntax-args: args | |
syntax-arg: arg | |
actionbars: | |
# Should the plugin check for placeholders in action bars? | |
enabled: true | |
syntax-lang: lang | |
syntax-args: args | |
syntax-arg: arg | |
titles: | |
# Should the plugin check for placeholders in titles and subtitles? | |
enabled: true | |
syntax-lang: lang | |
syntax-args: args | |
syntax-arg: arg | |
guis: | |
# Should the plugin check for placeholders in GUIs' titles? | |
enabled: true | |
syntax-lang: lang | |
syntax-args: args | |
syntax-arg: arg | |
holograms: | |
# Should the plugin check for placeholders in holograms (and/or entity display names)? | |
# Normally the most recent plugins use armor stands to make the holograms, but if they don't, you can change it here. | |
# Also, you can also translate other's entities name, like villagers. Add their entity type on the list below. | |
# Full list: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/EntityType.html | |
types: | |
- ARMOR_STAND | |
# When enabled, the list above is ignored and all entities' names are checked and translated. | |
allow-all: false | |
syntax-lang: lang | |
syntax-args: args | |
syntax-arg: arg | |
kick: | |
# Should the plugin check for placeholders in kick messages? | |
enabled: true | |
syntax-lang: lang | |
syntax-args: args | |
syntax-arg: arg | |
tab: | |
# Should the plugin check for placeholders in tab? | |
enabled: true | |
syntax-lang: lang | |
syntax-args: args | |
syntax-arg: arg | |
items: | |
# Should the plugin check for placeholders in items? | |
enabled: true | |
# When enabled, items in the player's own inventory will also be checked. | |
# Items might permanently change names if the players are in creative mode. | |
allow-in-inventory: false | |
# Enable translation of books. | |
# It is recommended to enable "allow-in-inventory" above if this is enabled. | |
books: false | |
syntax-lang: lang | |
syntax-args: args | |
syntax-arg: arg | |
signs: | |
# Should the plugin overlay the signs with the translations on languages.json? | |
enabled: true | |
syntax-lang: lang | |
syntax-args: args | |
syntax-arg: arg | |
bossbars: | |
# Should the plugin check for placeholders in bossbars? (1.9+) | |
enabled: true | |
syntax-lang: lang | |
syntax-args: args | |
syntax-arg: arg | |
motd: | |
# Should the plugin check for placeholders in the MOTD? | |
# This works by associating each IP with a language that changes when a player changes language. | |
# When the IP is unknown, the default language is used. | |
enabled: true | |
syntax-lang: lang | |
syntax-args: args | |
syntax-arg: arg | |
scoreboards: | |
# Should the plugin check for placeholders in scoreboard teams and objectives? | |
# Only works on 1.13 and above | |
# This is intended for TAB plugins that use scoreboard teams and objectives, not for actual scoreboards. | |
# To translate scoreboards, it is recommended to translate using PlaceholderAPI | |
enabled: true | |
syntax-lang: lang | |
syntax-args: args | |
syntax-arg: arg | |
advancements: | |
# Should the plugin check for placeholders in advancements? | |
# Only works on 1.12 and above | |
# This is intended for plugins that add custom advancements, since Minecraft's default advancements are already translated. | |
enabled: false | |
syntax-lang: lang | |
syntax-args: args | |
syntax-arg: arg | |
# EXPERIMENTAL: Should the advancements be refreshed when the language changes? | |
# There might be some issues with this enabled, disable if you have those issues. | |
# Without this enabled, players will have to leave and join the server for the language of custom advancements to be updated. | |
experimental-advancements-refresh: false | |
# If any message contains a placeholder with the key defined in the field below, that message won't be sent to the players (console will still receive it). | |
# Leave empty to disable this feature (it's disabled by default). | |
# Example (assuming you have the default values on your config and you've set disabled-line to 'disabled.line'): | |
# If any message contains '[lang]disabled.line[/lang]' it won't be sent. | |
disabled-line: '' | |
# Translate messages that go through console to the default language. | |
# For UX reasons, messages that contain disabled line placeholders aren't touched. | |
# Changing this requires a full server restart. | |
terminal: false | |
# Should placeholders typed in chat by players be ignored? | |
# Default is true | |
prevent-placeholders-in-chat: true | |
# ADVANCED: DO NOT CHANGE UNLESS YOU KNOW WHAT YOU'RE DOING | |
# How many placeholders the plugin should try to translate before giving up. | |
# This prevents infinite loops where the 404 message has a missing placeholder. | |
# Default is 10 | |
max-placeholders-in-message: 10 |