forked from tritonmc/Triton
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
232 lines (220 loc) · 10.3 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
# 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)'
# 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)'
# 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): Only errors and startup messages are logged to the console.
# 1: Also outputs details about config initialization and other relevant information (translation count, startup time, stack traces etc).
# 2: Also outputs information related to reading/writing files, as well as communication with BungeeCord and a database.
# 3: Logs EVERYTHING. Only recommended for debugging purposes. When enabled, every translation job will be logged to the console.
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', 'mongodb'
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
# 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
# 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