Skip to content

Commit 7a9602b

Browse files
committed
Refresh plugin data and Paper compatibility tooling
1 parent 59f52c8 commit 7a9602b

331 files changed

Lines changed: 59790 additions & 76726 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env.example

Lines changed: 51 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ DISCORD_MFM_CHANNEL_IDS=713838315572559892
1818
DISCORD_TRYME_CHANNEL_IDS=714111148059787285
1919
DISCORD_TRADEME_CHANNEL_IDS=713838991744434277
2020
DISCORD_RESIDENCE_CHANNEL_IDS=526403195476639744
21+
DISCORD_BOTTLEDEXP_CHANNEL_IDS=
2122
DISCORD_TEST_CHANNEL_IDS=1493976695152054353
2223
DISCORD_TEST_DEFAULT_CONTEXT=cmi
2324

@@ -45,6 +46,14 @@ DISPLAY_PATH_PREFIX=~/plugins
4546
# Number of results shown in Discord replies.
4647
DEFAULT_RESULT_LIMIT=3
4748

49+
# Clean-server version catalog and scheduled upstream checks.
50+
VERSION_CATALOG_PATH=data/versions.json
51+
VERSION_CHECK_ENABLED=true
52+
VERSION_CHECK_INTERVAL_HOURS=12
53+
VERSION_CHECK_TIMEOUT_SECONDS=8
54+
PAPER_VERSION=26.2
55+
PAPER_VERSION_CHANNELS=STABLE
56+
4857
# Per-user cooldowns in seconds.
4958
LOOKUP_COOLDOWN_SECONDS=3
5059
SUMMARY_COOLDOWN_SECONDS=15
@@ -68,19 +77,19 @@ LANGLOOKUP_INCLUDE_GLOBS=CMIPlugin/CMI/Translations/**/Locale_EN.yml,CMILibPlugi
6877
LANGLOOKUP_EXCLUDE_GLOBS=
6978

7079
# Scope for placeholder lookups.
71-
PLACEHOLDER_INCLUDE_GLOBS=CMIPlugin/data/placeholders.log
80+
PLACEHOLDER_INCLUDE_GLOBS=CMIPlugin/data/placeholders.log,CMIPlugin/data/generated-placeholders.log,CMILibPlugin/data/generated-placeholders.log
7281
PLACEHOLDER_EXCLUDE_GLOBS=
7382

7483
# Scope for material lookups.
7584
MATERIAL_INCLUDE_GLOBS=CMIPlugin/data/materials.log
7685
MATERIAL_EXCLUDE_GLOBS=
7786

7887
# Scope for command lookups.
79-
COMMAND_INCLUDE_GLOBS=CMIPlugin/data/commands.log
88+
COMMAND_INCLUDE_GLOBS=CMIPlugin/data/commands.log,CMIPlugin/data/generated-commands.log
8089
COMMAND_EXCLUDE_GLOBS=
8190

8291
# Scope for permission lookups.
83-
PERMISSION_INCLUDE_GLOBS=CMIPlugin/data/permissions.log,CMIPlugin/data/cmdperms.log
92+
PERMISSION_INCLUDE_GLOBS=CMIPlugin/data/permissions.log,CMIPlugin/data/cmdperms.log,CMIPlugin/data/generated-permissions.log
8493
PERMISSION_EXCLUDE_GLOBS=
8594

8695
# Scope for FAQ lookups.
@@ -92,15 +101,15 @@ TABCOMPLETE_INCLUDE_GLOBS=CMIPlugin/data/tabcompletes.log
92101
TABCOMPLETE_EXCLUDE_GLOBS=
93102

94103
# Jobs plugin scopes.
95-
JOBS_LOOKUP_INCLUDE_GLOBS=JobsPlugin/generalConfig.yml,CMILibPlugin/CMILib/config.yml
96-
JOBS_LOOKUP_EXCLUDE_GLOBS=
104+
JOBS_LOOKUP_INCLUDE_GLOBS=JobsPlugin/*.yml,JobsPlugin/jobs/**/*.yml,CMILibPlugin/CMILib/config.yml
105+
JOBS_LOOKUP_EXCLUDE_GLOBS=JobsPlugin/locale/**,JobsPlugin/TranslatableWords/**,JobsPlugin/data/**,JobsPlugin/Signs.yml,JobsPlugin/activeBoosts.yml,JobsPlugin/blockOwnerShips.yml
97106
JOBS_LANGUAGE_INCLUDE_GLOBS=JobsPlugin/locale/messages_en.yml,JobsPlugin/TranslatableWords/Words_en.yml,CMILibPlugin/CMILib/Translations/**/*_EN.yml
98107
JOBS_LANGUAGE_EXCLUDE_GLOBS=
99-
JOBS_PLACEHOLDER_INCLUDE_GLOBS=JobsPlugin/data/placeholders.log
108+
JOBS_PLACEHOLDER_INCLUDE_GLOBS=JobsPlugin/data/placeholders.log,JobsPlugin/data/generated-placeholders.log,CMILibPlugin/data/generated-placeholders.log
100109
JOBS_PLACEHOLDER_EXCLUDE_GLOBS=
101-
JOBS_COMMAND_INCLUDE_GLOBS=JobsPlugin/data/commands.log
110+
JOBS_COMMAND_INCLUDE_GLOBS=JobsPlugin/data/commands.log,JobsPlugin/data/generated-commands.log
102111
JOBS_COMMAND_EXCLUDE_GLOBS=
103-
JOBS_PERMISSION_INCLUDE_GLOBS=JobsPlugin/data/permissions.log
112+
JOBS_PERMISSION_INCLUDE_GLOBS=JobsPlugin/data/permissions.log,JobsPlugin/data/generated-permissions.log
104113
JOBS_PERMISSION_EXCLUDE_GLOBS=
105114
JOBS_FAQ_INCLUDE_GLOBS=JobsPlugin/data/faq.log,JobsPlugin/data/faq/*.md
106115
JOBS_FAQ_EXCLUDE_GLOBS=
@@ -110,37 +119,63 @@ SVIS_LOOKUP_INCLUDE_GLOBS=SVISPlugin/config.yml,CMILibPlugin/CMILib/config.yml
110119
SVIS_LOOKUP_EXCLUDE_GLOBS=
111120
SVIS_LANGUAGE_INCLUDE_GLOBS=SVISPlugin/Locale_EN.yml,CMILibPlugin/CMILib/Translations/**/*_EN.yml
112121
SVIS_LANGUAGE_EXCLUDE_GLOBS=
113-
SVIS_COMMAND_INCLUDE_GLOBS=SVISPlugin/data/commands.log
122+
SVIS_COMMAND_INCLUDE_GLOBS=SVISPlugin/data/commands.log,SVISPlugin/data/generated-commands.log
114123
SVIS_COMMAND_EXCLUDE_GLOBS=
115-
SVIS_PERMISSION_INCLUDE_GLOBS=SVISPlugin/data/permissions.log
124+
SVIS_PERMISSION_INCLUDE_GLOBS=SVISPlugin/data/permissions.log,SVISPlugin/data/generated-permissions.log
116125
SVIS_PERMISSION_EXCLUDE_GLOBS=
117126

118127
# Residence plugin scopes.
119-
RESIDENCE_LOOKUP_INCLUDE_GLOBS=ResidencePlugin/config.yml,ResidencePlugin/groups.yml,ResidencePlugin/flags.yml,CMILibPlugin/CMILib/config.yml
128+
RESIDENCE_LOOKUP_INCLUDE_GLOBS=ResidencePlugin/config.yml,ResidencePlugin/groups.yml,ResidencePlugin/flags.yml,ResidencePlugin/ShopVotes.yml,CMILibPlugin/CMILib/config.yml
120129
RESIDENCE_LOOKUP_EXCLUDE_GLOBS=
121130
RESIDENCE_LANGUAGE_INCLUDE_GLOBS=ResidencePlugin/Language/English.yml,CMILibPlugin/CMILib/Translations/**/*_EN.yml
122131
RESIDENCE_LANGUAGE_EXCLUDE_GLOBS=
123-
RESIDENCE_PLACEHOLDER_INCLUDE_GLOBS=ResidencePlugin/data/placeholders.log
132+
RESIDENCE_PLACEHOLDER_INCLUDE_GLOBS=ResidencePlugin/data/placeholders.log,ResidencePlugin/data/generated-placeholders.log,CMILibPlugin/data/generated-placeholders.log
124133
RESIDENCE_PLACEHOLDER_EXCLUDE_GLOBS=
125-
RESIDENCE_COMMAND_INCLUDE_GLOBS=ResidencePlugin/data/commands.log
134+
RESIDENCE_COMMAND_INCLUDE_GLOBS=ResidencePlugin/data/commands.log,ResidencePlugin/data/generated-commands.log
126135
RESIDENCE_COMMAND_EXCLUDE_GLOBS=
127-
RESIDENCE_PERMISSION_INCLUDE_GLOBS=ResidencePlugin/data/permissions.log
136+
RESIDENCE_PERMISSION_INCLUDE_GLOBS=ResidencePlugin/data/permissions.log,ResidencePlugin/data/generated-permissions.log
128137
RESIDENCE_PERMISSION_EXCLUDE_GLOBS=
129138

130139
# MFM plugin scopes.
131140
MFM_LOOKUP_INCLUDE_GLOBS=MFMPlugin/config.yml,CMILibPlugin/CMILib/config.yml
132141
MFM_LOOKUP_EXCLUDE_GLOBS=
133142
MFM_LANGUAGE_INCLUDE_GLOBS=MFMPlugin/Locale/Locale_EN.yml,CMILibPlugin/CMILib/Translations/**/*_EN.yml
134143
MFM_LANGUAGE_EXCLUDE_GLOBS=
144+
MFM_COMMAND_INCLUDE_GLOBS=MFMPlugin/data/generated-commands.log
145+
MFM_COMMAND_EXCLUDE_GLOBS=
146+
MFM_PERMISSION_INCLUDE_GLOBS=MFMPlugin/data/generated-permissions.log
147+
MFM_PERMISSION_EXCLUDE_GLOBS=
135148

136149
# TryMe plugin scopes.
137-
TRYME_LOOKUP_INCLUDE_GLOBS=TryMePlugin/config.yml,CMILibPlugin/CMILib/config.yml
138-
TRYME_LOOKUP_EXCLUDE_GLOBS=
150+
TRYME_LOOKUP_INCLUDE_GLOBS=TryMePlugin/*.yml,CMILibPlugin/CMILib/config.yml
151+
TRYME_LOOKUP_EXCLUDE_GLOBS=TryMePlugin/Locale_EN.yml,TryMePlugin/Signs.yml
139152
TRYME_LANGUAGE_INCLUDE_GLOBS=TryMePlugin/Locale_EN.yml,CMILibPlugin/CMILib/Translations/**/*_EN.yml
140153
TRYME_LANGUAGE_EXCLUDE_GLOBS=
154+
TRYME_PLACEHOLDER_INCLUDE_GLOBS=TryMePlugin/data/generated-placeholders.log,CMILibPlugin/data/generated-placeholders.log
155+
TRYME_PLACEHOLDER_EXCLUDE_GLOBS=
156+
TRYME_COMMAND_INCLUDE_GLOBS=TryMePlugin/data/generated-commands.log
157+
TRYME_COMMAND_EXCLUDE_GLOBS=
158+
TRYME_PERMISSION_INCLUDE_GLOBS=TryMePlugin/data/generated-permissions.log
159+
TRYME_PERMISSION_EXCLUDE_GLOBS=
141160

142161
# TradeMe plugin scopes.
143162
TRADEME_LOOKUP_INCLUDE_GLOBS=TradeMePlugin/config.yml,CMILibPlugin/CMILib/config.yml
144163
TRADEME_LOOKUP_EXCLUDE_GLOBS=
145164
TRADEME_LANGUAGE_INCLUDE_GLOBS=TradeMePlugin/Locale_EN.yml,CMILibPlugin/CMILib/Translations/**/*_EN.yml
146165
TRADEME_LANGUAGE_EXCLUDE_GLOBS=
166+
TRADEME_PLACEHOLDER_INCLUDE_GLOBS=TradeMePlugin/data/generated-placeholders.log,CMILibPlugin/data/generated-placeholders.log
167+
TRADEME_PLACEHOLDER_EXCLUDE_GLOBS=
168+
TRADEME_COMMAND_INCLUDE_GLOBS=TradeMePlugin/data/generated-commands.log
169+
TRADEME_COMMAND_EXCLUDE_GLOBS=
170+
TRADEME_PERMISSION_INCLUDE_GLOBS=TradeMePlugin/data/generated-permissions.log
171+
TRADEME_PERMISSION_EXCLUDE_GLOBS=
172+
173+
# BottledExp plugin scopes.
174+
BOTTLEDEXP_LOOKUP_INCLUDE_GLOBS=BottledExpPlugin/config.yml,BottledExpPlugin/recipes.yml,CMILibPlugin/CMILib/config.yml
175+
BOTTLEDEXP_LOOKUP_EXCLUDE_GLOBS=
176+
BOTTLEDEXP_LANGUAGE_INCLUDE_GLOBS=BottledExpPlugin/Locale_EN.yml,CMILibPlugin/CMILib/Translations/**/*_EN.yml
177+
BOTTLEDEXP_LANGUAGE_EXCLUDE_GLOBS=
178+
BOTTLEDEXP_COMMAND_INCLUDE_GLOBS=BottledExpPlugin/data/generated-commands.log
179+
BOTTLEDEXP_COMMAND_EXCLUDE_GLOBS=
180+
BOTTLEDEXP_PERMISSION_INCLUDE_GLOBS=BottledExpPlugin/data/generated-permissions.log
181+
BOTTLEDEXP_PERMISSION_EXCLUDE_GLOBS=

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,15 @@ node_modules/
55
!.env.example
66
npm-debug.log*
77
logs/
8+
servers/
89
.DS_Store
910
CMI/cmi.sqlite.db
1011
CMIPlugin/CMI/cmi.sqlite.db
12+
*.db
13+
*.sqlite
14+
*.sqlite3
15+
*.db-shm
16+
*.db-wal
1117
*.sqlite-shm
1218
*.sqlite-wal
1319
security.key

BottledExpPlugin/Locale_CN.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
Prefix: '&e[&a瓶装经验&e] '
2+
Nopermission: '&4权限不足,无法执行!'
3+
NoPlayer: '&4无法找到匹配该名称的玩家!'
4+
MoreThanZero: '&4数值必须大于 0'
5+
Self: '&4你无法将经验递送至自己!'
6+
Reload: '&e配置文件已重载!'
7+
Enchant: '&2本次附魔花费了 &3[xp]&2 点经验'
8+
GotExp: '&2你获得了 &3[xp]&2 点经验'
9+
Store:
10+
Name: '&6| 瓶装经验 |'
11+
Lore: '&e已存储经验:'
12+
ExpLoreColor: '&6'
13+
command:
14+
help:
15+
output:
16+
usage: '&e用法:&6%usage%'
17+
title: '&2----&e ==== &6瓶装经验&e ==== &2----'
18+
stats:
19+
help:
20+
info: '&2查看指定玩家的经验详情'
21+
args: '&3(玩家名称)'
22+
info:
23+
feedback:
24+
- '&2你当前拥有 &3[xp] &2点经验,经验等级为 &3[level]&2!'
25+
- '&2距下一个经验等级还需 &3[xpdelta] &2点经验或 &3[bottles] &2个附魔之瓶!'
26+
Moneyfeedback: '&2执行该命令将花费 &3[money]'
27+
until:
28+
help:
29+
info: '&2查看当前等级与目标等级间相差的经验点数与所需的附魔之瓶数量'
30+
args: '[目标等级]'
31+
info:
32+
moreThan: '&4目标等级必须高于当前等级!'
33+
feedback: '&2距 &3[level]&2 级还需 &3[xp] &2点经验或 &3[bottles] &2个附魔之瓶!'
34+
Moneyfeedback: '&2执行该命令将花费 &3[money]'
35+
give:
36+
help:
37+
info: '&2将经验递送给其他玩家'
38+
args: '[玩家名称] [经验点数]'
39+
info:
40+
noExp: '&4经验不足,无法递送!'
41+
sender: '&2已将 &3[amount] &2点经验递送给 &3[name] &2,&3[lost] &2点经验遭到流失'
42+
receiver: '&2已收取来自 &3[name] &2的 &3[amount] &2点经验,&3[lost] &2点经验遭到流失'
43+
eblock:
44+
help:
45+
info: '&2将目视的方块创建为自定义经验交换方块'
46+
args: ''
47+
info:
48+
created: '&6已创建'
49+
removed: '&e已移除'
50+
reload:
51+
help:
52+
info: '&2重载配置文件'
53+
args: ''
54+
get:
55+
help:
56+
info: '&2将经验转化为附魔之瓶'
57+
args: '[经验点数/max]'
58+
info:
59+
noExp: '&4经验不足,无法转化'
60+
NoMoney: '&4余额不足,无法转化!'
61+
NoItems: '&4物品不足,无法转化!'
62+
Cost: '&e转化花费:&3[cost]'
63+
Order: '&2已将指定经验值转化为 &3[bottles] &2个附魔之瓶!'
64+
store:
65+
help:
66+
info: '&2将指定点数的经验装入瓶中'
67+
args: '[经验点数/经验级数L/max]'
68+
info:
69+
converted: '&2已将 &3[exp] &2点经验装入瓶中!'

BottledExpPlugin/Locale_DE.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
Prefix: '&e[&aBottledExp&e] '
2+
Nopermission: '&4Du hast keine Rechte für das!'
3+
NoPlayer: '&4Es gibt keinen Spieler mit diesem Namen!'
4+
MoreThanZero: '&4Bitte gib eine größere Nummer als 0 ein'
5+
Self: '&4Du kannst dir nicht selbst XP schicken!'
6+
Reload: '&eEinstellungsdokument wurde aktualisiert!'
7+
Enchant: '&2Du hast &3[xp] &2XP für diese Verzauberung ausgegeben'
8+
GotExp: '&2Du hast &3[xp] &2XP erhalten'
9+
Store:
10+
Name: '&6| BottledExp |'
11+
Lore: '&eGespeicherte XP:'
12+
ExpLoreColor: '&6'
13+
command:
14+
help:
15+
output:
16+
usage: '&eUsage: &6%usage%'
17+
title: '&2----&e ==== &6BottledExp &e==== &2----'
18+
stats:
19+
help:
20+
info: '&2Überprüfe deine XP Informationen'
21+
args: '&3(Spielername)'
22+
info:
23+
feedback:
24+
- '&2Du hast derzeit &3[xp] &2XP und du bist derzeit auf LV: &3[level]&2!'
25+
- '&2Du benötigst noch &3[xpdelta] &2XP oder &3[bottles] &2Fläschchen für das nächste Level!'
26+
Moneyfeedback: '&2Das wird dich &3[money] &2kosten.'
27+
until:
28+
help:
29+
info: '&2Überprüfe, wie viele Fläschchen du benötigst, um das Level zu erreichen'
30+
args: '[level]'
31+
info:
32+
moreThan: '&4Dies sollte mehr als dein Level sein!'
33+
feedback: '&2Du brauchst &3[xp] &2XP oder &3[bottles] &2Fläschchen, für Level &3[level]
34+
&2level'
35+
Moneyfeedback: '&2Das wird dich &3[money] &2kosten'
36+
give:
37+
help:
38+
info: '&2Gib einem anderen Spieler XP'
39+
args: '[Spielername] [exp]'
40+
info:
41+
noExp: '&4Du hast nicht genug XP um zu geben'
42+
sender: '&2Du hast gerade &3[amount] &2XP zu &3[name] &2geschickt &2und &3[lost] &2XP sind
43+
durch den Transfer verloren gegangen'
44+
receiver: '&2Du hast gerade &3[amount] &2XP von &3[name] &2erhalten und &3[lost] &2XP
45+
sind durch den Transfer verloren gegangen'
46+
eblock:
47+
help:
48+
info: '&2Erstellt einen benutzerdefinierten XP-Austauschblock, den du gerade ansiehst'
49+
args: ''
50+
info:
51+
created: '&6Erstellt'
52+
removed: '&eEntfernt'
53+
reload:
54+
help:
55+
info: '&2Aktualisiert Config Datei'
56+
args: ''
57+
get:
58+
help:
59+
info: '&2Tausche XP in Erfahrungsfläschchen'
60+
args: '[Anzahl] oder Max.'
61+
info:
62+
noExp: '&4Du hast nicht genügend XP'
63+
NoMoney: '&4Du hast nicht genug Geld!'
64+
NoItems: '&4Du hast nicht genügend Items!'
65+
Refund: '&2Rückerstattung ausgestellt! Summe: &3[amount]'
66+
Cost: '&eTransaktionsgebühr: &3[cost]'
67+
Order: '&2Du hast: &3[bottles] &2Fläschchen bestellt!'

BottledExpPlugin/Locale_EN.yml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
Prefix: '&e[&aBottledExp&e] '
2+
Self: '&4You cant send exp for yourself!'
3+
Reload: '&eConfiguration files was reloaded!'
4+
Enchant: '&2You have spend &3[xp] &2xp for this enchantment'
5+
GotExp: '&2You have got &3[xp] &2xp'
6+
Store:
7+
Name: '&6| BottledExp |'
8+
BottleLore: '&eStored Exp: &6[exp]'
9+
ExpLoreColor: '&6'
10+
command:
11+
help:
12+
output:
13+
usage: '&eUsage: &6%usage%'
14+
cmdInfoFormat: '[command] &f- &e[description]'
15+
cmdFormat: '&6/[command] &f[arguments]'
16+
helpPageDescription: '&e* [description]'
17+
title: '&2----&e ==== &6BottledExp &e==== &2----'
18+
stats:
19+
help:
20+
info: '&2Check your exp information'
21+
args: (playername)
22+
info:
23+
feedback:
24+
- '&2You currently have &3[xp] &2xp and you are at lvl &3[level]&2!'
25+
- '&2You still need &3[xpdelta] &2xp or &3[bottles] &2bottles for next level!'
26+
Moneyfeedback: '&2This will gonna cost you &3[money]'
27+
until:
28+
help:
29+
info: '&2Check how many bottles you need to reach level'
30+
args: '[level]'
31+
info:
32+
moreThan: '&4This should be more than your level!'
33+
feedback: '&2You need &3[xp] &2xp or &3[bottles] &2bottles to reach &3[level]
34+
&2level'
35+
Moneyfeedback: '&2This will gonna cost you &3[money]'
36+
give:
37+
help:
38+
info: '&2Give exp to another player'
39+
args: '[playername] [exp]'
40+
info:
41+
noExp: '&4You dont have enough exp to give'
42+
sender: '&2You just send &3[amount] &2xp to &3[name] &2and &3[lost] &2xp was
43+
lost during transfer'
44+
receiver: '&2You just got &3[amount] &2xp from &3[name] &2and &3[lost] &2xp
45+
was lost during transfer'
46+
eblock:
47+
help:
48+
info: '&2Creates custom exp exchange block you are looking at'
49+
args: ''
50+
info:
51+
created: '&6Created'
52+
removed: '&eRemoved'
53+
reload:
54+
help:
55+
info: '&2Reload config files'
56+
args: ''
57+
get:
58+
help:
59+
info: '&2Exchange exp to exp bottles'
60+
args: '[amount/max]'
61+
info:
62+
noExp: '&4You dont have enough exp'
63+
NoMoney: '&4You don''t have enough money!'
64+
NoItems: '&4You don''t have enough items!'
65+
Cost: '&eTransaction cost: &3[cost]'
66+
Order: '&2You have ordered: &3[bottles] &2bottles!'
67+
store:
68+
help:
69+
info: '&2Store particular amount in a bottle'
70+
args: '[exp/levelL/max]'
71+
info:
72+
converted: '&2You have ordered: &3[exp] &2exp!'
73+
consume:
74+
help:
75+
info: '&2Consume bottles from your hand'
76+
args: '[amount/all]'
77+
info:
78+
consumed: '&2Consumed &6[bottles] &2bottles and gained &6[exp] &2exp'

0 commit comments

Comments
 (0)