Skip to content

Commit bdb8d8e

Browse files
author
flurbudurbur
committed
Verbose YAML files
1 parent 4e30374 commit bdb8d8e

3 files changed

Lines changed: 69 additions & 53 deletions

File tree

src/main/resources/config.yml

Lines changed: 59 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,83 +1,94 @@
1-
# this is used for letting you know that you need to update/change your config file
1+
# This is used for letting you know that you need to update/change your config file.
2+
# Do not change this.
23
version: 10
34

4-
# the locale to use for messages
5-
# all messages can be customised but this allows you to
6-
# choose messages that are already translated
7-
# locales can be found in the locale/ folder
5+
# The locale to use for messages.
6+
# All messages can be customised but this allows you to.
7+
# Choose messages that are already translated.
8+
# Locales can be found in the locale/ folder.
89
locale: en
910

10-
# interval (in minutes) to check to autorankup players
11-
# ranking up manually will always be enabled
12-
# set to 0 to disable
11+
# Interval (in minutes) to check to autorankup players.
12+
# Ranking up manually will always be enabled.
13+
# Set to 0 to disable.
14+
15+
# Players will need the rankup.auto permission to make use of this!
16+
# Permission is given by default.
1317
autorankup-interval: 0
1418

15-
# whether /ranks and /prestiges should be enabled (true) or disabled (false)
19+
# Whether /ranks and /prestiges should be enabled (true) or disabled (false)
1620
# /rankup3 reload will not do anything if this is changed,
17-
# you will have to restart your server.
21+
# You will have to restart your server.
1822
ranks: true
19-
# you can alternatively negate the permission rankup.prestiges
20-
# this will also make the command not autocomplete in 1.13
23+
24+
# You can alternatively negate the permission rankup.prestiges.
25+
# This will also make the command not autocomplete in 1.13+.
2126
prestiges: true
2227

23-
# whether to enable the /ranks GUI.
24-
# will override the /ranks command
28+
# Whether to enable the /ranks GUI.
29+
# Will override the /ranks command.
2530
ranks-gui: false
2631

27-
# whether or not /prestige and /prestiges should be enabled.
28-
# when a player reaches the top rank, they can do /prestige to return to the first rank,
32+
# Whether /prestige and /prestiges should be enabled.
33+
# When a player reaches the top rank, they can /prestige to return to the first rank,
2934
# but you will be able to grant them an additional "prestige" group or additional items.
3035
#
31-
# if you do not want this command to autocomplete, make sure
36+
# If you do not want this command to autocomplete, make sure
3237
# you negate the permission rankup.prestige with your permissions plugin.
33-
# if enabled, a prestiges.yml file will be generated with some example prestiges
34-
# You must restart your server when you change this for it to work!
38+
# If enabled, a prestiges.yml file will be generated with some example prestiges
39+
# you must restart your server when you change this for it to work!
3540
prestige: false
3641

37-
# if true, players with the permission rankup.notify will receive notifications when they join
42+
# If true, players with the permission rankup.notify will receive notifications when they join
3843
# to update if the server is on an older version of Rankup.
3944
notify-update: true
4045

41-
# if rankups and prestiges should be by permissions
42-
# if false, players will be checked for if they have a group of the same name as in rankups.yml,
43-
# and automatically added and taken away from those groups.
44-
# if true, players will be checked for the permission rankup.rank.RANK, where RANK
45-
# is the rankup in rankups.yml.
46-
# true also enables MANUAL MODE: Nothing will automatically change on rankup.
47-
# You must use 'commands:' to change a player's group or permission when true. https://github.com/okx-code/Rankup3/wiki/How-to-rankups.yml-and-prestiges.yml#1-commands
46+
# +------------------------------------------------------+
47+
# | Don't change this unless you know what you're doing! |
48+
# +------------------------------------------------------+
49+
# Changing this setting to "true" can lead to your rankups.yml no longer working.
50+
#
51+
# Learn more about this:
52+
# https://okx.sh/rankup/Advanced-Configuration/Permission-Rankup.html
4853
permission-rankup: false
4954

50-
# how people should confirm ranking up
51-
# options are: gui, text or none
55+
# How people should confirm ranking up
56+
# Options are: gui, text or none
5257
confirmation-type: 'gui'
5358

54-
# how long, in seconds, people have to wait between a successful /rankup or /prestige
59+
# How long in seconds people have to wait between a successful /rankup or /prestige
5560
# set to 0 to disable.
5661
cooldown: 1
5762

58-
# if enabled, players can run /maxrankup to rankup as many times as possible,
63+
# If enabled, players can run /maxrankup to rankup as many times as possible,
5964
# before they fail the requirements for the next rank.
60-
# the permission rankup.maxrankup is used for this command, but it is given by default.
61-
# note that /maxrankup, if enabled, has no confirmation.
65+
# The permission rankup.maxrankup is used for this command, but it is given by default.
66+
# Note that /maxrankup, if enabled, has no confirmation.
6267
max-rankup:
6368
# You must restart your server if you enable or disable /maxrankup!
6469
enabled: false
65-
# whether to send a message for each rankup a player does
66-
# if set to true, the chat may be spammed for each rankup a player goes through with /maxrankup
67-
# if set to false, only the last rankup will be shown (if a player starts on rank A, then does
68-
# /maxrankup and ranks up to B and then C, it will just say "player has ranked up to C")
69-
individual-messages: true
7070

71-
# options when using the text rankup confirmation
71+
# Whether to send a message for each rank a player ranks up for.
72+
# -> If true, the chat may be spammed for each rankup a player goes through with /maxrankup
73+
# Example: a player starts on rank A, but can rankup to rank D, the chat will say:
74+
# "player has ranked up to B"
75+
# "player has ranked up to C"
76+
# "player has ranked up to D"
77+
# -> If false, only the last rankup will be shown
78+
# Example: a player starts on rank A, but can rankup to rank D, the chat will say:
79+
# "player has ranked up to D".
80+
individual-messages: false
81+
82+
# Options when using the text rankup confirmation
7283
text:
73-
# the time in seconds for a player to
74-
# confirm by typing /rankup again
84+
# The time in seconds for a player to
85+
# confirm by typing /rankup again.
7586
timeout: 10
7687

77-
# placeholders:
88+
# Placeholders:
7889
# https://okx.sh/rankup/Placeholders.html
7990
placeholders:
80-
# format for money. for more information, see
91+
# Format for money. for more information, see
8192
# https://docs.oracle.com/javase/8/docs/api/java/text/DecimalFormat.html
8293
money-format: "#,##0.##"
8394
percent-format: "0.##"
@@ -96,12 +107,12 @@ placeholders:
96107
incomplete: "Incomplete"
97108
last-rank-display-name: "last rank"
98109

99-
# what to shorten money by.
110+
# What to shorten money by.
100111
# ie 1000 -> 1k
101-
# set to an empty list to disable
102-
# for each entry here, it counts as increasing by a factor of 1,000
103-
# the first represents thousands (1,000) then millions (1,000,000) then billions (1,000,000,000) etc.
104-
# this is used in the "| shortmoney" filter
112+
# Set to an empty list to disable
113+
# For each entry here, it counts as increasing by a factor of 1,000
114+
# The first represents thousands (1,000) then millions (1,000,000) then billions (1,000,000,000) etc.
115+
# This is used in the "| shortmoney" filter
105116
shorten:
106117
- 'K'
107118
- 'M'

src/main/resources/locale/en.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ rankup:
1010
must-prestige: "&cYou must prestige to /rankup further!"
1111
no-rankup: "&eYou are at the highest rank."
1212

13-
# used for the text confirmation
13+
# Only applies if confirmation-type: 'text' in config.yml.
1414
confirmation: |-
1515
&eAre you sure you want to rankup to &a{{next.rank}}&e?
1616
&eType &c/rankup &eagain to confirm.
1717
18+
# Only applies if confirmation-type: 'gui' in config.yml (Default).
1819
gui:
1920
rows: 1
2021
title: "Rankup to {{next.rank}}"
@@ -23,7 +24,7 @@ rankup:
2324
# ===[ IMPORTANT PRE-FLATTENING INFO ]===
2425
# If you are using a 1.8-1.12 and you want to change this
2526
# you can use MATERIAL:data, for example STAINED_GLASS_PANE:8
26-
# this works for both the rankup, cancel and fill blocks as well.
27+
# This works for both the rankup, cancel and fill blocks as well.
2728

2829
material: GREEN_STAINED_GLASS_PANE
2930

@@ -46,6 +47,7 @@ rankup:
4647
name: ' '
4748
material: BLACK_STAINED_GLASS_PANE
4849

50+
# Only applies if ranks-gui: true in config.yml.
4951
ranksgui:
5052
title: "Ranks"
5153
rows: 3
@@ -68,6 +70,7 @@ rankup:
6870
material: BLACK_STAINED_GLASS_PANE
6971
name: ' '
7072

73+
# Only applies if ranks-gui: false in config.yml (Default).
7174
list:
7275
complete: "&7{{rank.rank}} &8\xbb &7{{next.rank}}"
7376
current: "&c{{rank.rank}} &e\xbb &c{{next.rank}}"
@@ -81,7 +84,9 @@ rankup:
8184
singular: "&cYou must wait {{seconds_left}} more second to rankup again."
8285
plural: "&cYou must wait {{seconds_left}} more seconds to rankup again."
8386

84-
# prestige messages can also be customised
87+
# Prestige messages can also be customised.
88+
# They can be customized on a per-prestige basis in the prestiges.yml.
89+
# If you do not see a prestiges.yml, enable it in the config.yml.
8590
prestige:
8691
requirements-not-met: "&cYou need {{rank.requirement('money').total | money}} money to prestige."
8792
no-prestige: "&eYou are at the highest prestige."
@@ -99,7 +104,7 @@ prestige:
99104
# ===[ IMPORTANT PRE-FLATTENING INFO ]===
100105
# If you are using a 1.8-1.12 and you want to change this
101106
# you can use MATERIAL:data, for example STAINED_GLASS_PANE:8
102-
# this works for both the rankup, cancel and fill blocks as well.
107+
# This works for both the rankup, cancel and fill blocks as well.
103108

104109
rankup:
105110
material: BLUE_STAINED_GLASS_PANE

src/main/resources/locale/es.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
money# the messages in this section can be customised for each rankup in rankups.yml.
1+
# the messages in this section can be customised for each rankup in rankups.yml.
22
rankup:
33
requirements-not-met: "&cNo satisfaces los requisitos para seguir al siguiente rango."
44
no-rankup: "&eEstás en el último rango."

0 commit comments

Comments
 (0)