1
+ # The ranks were made with LuckPerms. A LuckPerms track was also made named "rankup".
2
+ # The "rankup" track has the following ranks: default -> vip -> vipplus -> mvp -> mvpplus -> mvpplusplus.
3
+ # Each rank inherits the rank just below them. This means, vip inherits default, vipplus inherits vip,
4
+ # mvp inherits vipplus, mvpplus inherits mvp, mvpplusplus inherits mvp.
1
5
2
- # ---------------------------------------------------------------------- #
3
- # THIS MENU WAS MADE USING DELUXEMENUS v1.12.0 #
4
- # ---------------------------------------------------------------------- #
5
- # #
6
- # NOTE: This menu was made for a seperate yaml-file! #
7
- # Add the following code to the config.yml of DeluxeMenus and #
8
- # reload the plugin (/dm reload). #
9
- # #
10
- # gui_menus: #
11
- # ranks: #
12
- # file: ranks.yml #
13
- # #
14
- # ADD THIS INSIDE config.yml AND ranks.yml INSIDE gui_menus FOLDER #
15
- # THEN RELOAD THE PLUGIN (/dm reload) #
16
- # ---------------------------------------------------------------------- #
17
6
menu_title : ' &eRank Store!'
18
7
open_command : ranks
19
8
size : 9
20
9
items :
21
- vip :
22
- material : gold_ingot
23
- slot : 3
10
+ does_not_have_vip : # This item wil show in the menu if the player doesn't have vip or a higher rank.
11
+ material : copper_ingot
12
+ slot : 2
24
13
priority : 1
25
14
display_name : ' &eVIP Rank'
26
15
lore :
27
16
- ' '
28
17
- ' &7Rank: &eVIP'
29
18
- ' &7Cost: &a$500'
30
19
- ' '
31
- - ' &8Left click to purchase.'
32
- left_click_commands :
33
- - ' [takemoney] 500' # We take the 500
34
- - ' [console] lp user %player_name% parent add vip ' # We give them the vip rank
35
- left_click_requirement :
20
+ - ' &8Click to purchase.'
21
+ click_commands :
22
+ - ' [takemoney] 500' # Take 500 from the player
23
+ - ' [console] lp user %player_name% promote rankup ' # Promote the player on the "rankup" track.
24
+ click_requirement :
36
25
requirements :
37
- no_rank : # This requirement will check if they have the rank, and if they do, it won't allow them to purchase the rank
38
- type : string equals ignorecase
39
- input : ' %luckperms_in_group_vip%'
40
- output : ' no'
41
- deny_commands :
42
- - ' [message]&cYou already own this rank!'
43
- - ' [close]'
44
- no_rank2 : # This requirement will check if they have the vipplus rank, and if they do it won't allow them to purchase the rank
45
- type : string equals ignorecase
46
- input : ' %luckperms_in_group_vipplus%'
47
- output : ' no'
26
+ no_rank : # This requirement will check if the player has vip or a higher rank, and if they do, it won't allow them to click this item.
27
+ type : ' !has permission'
28
+ permission : ' group.vip'
48
29
deny_commands :
49
- - ' [message]&cYou already own the &eVIP+&c rank!'
30
+ - ' [message]&cYou already own this or a higher rank!'
50
31
- ' [close]'
51
- money : # This requirement will check if they have 500$ and if they don't, it won't allow them to purchase the rank
32
+ money : # This requirement will check if the player has 500$ and if they don't, it won't allow them to click this item.
52
33
type : has money
53
34
amount : 500
54
35
deny_commands :
55
36
- ' [message]&cYou don'' t have enough money!'
56
37
- ' [close]'
57
38
view_requirement :
58
39
requirements :
59
- no_rank : # This requirement will check if they have the rank, and if they do it will show the has_vip item instead.
60
- type : string equals ignorecase
61
- input : ' %luckperms_in_group_vip%'
62
- output : ' no'
63
- no_rank2 : # This requirement will check if they have the vipplus rank, and if they do it will show the has_vip item instead.
64
- type : string equals ignorecase
65
- input : ' %luckperms_in_group_vipplus%'
66
- output : ' no'
67
-
68
- has_vip : # This item will show up if they already have the vip rank
69
- material : gold_ingot
70
- slot : 3
40
+ no_rank : # This requirement will check if they have the rank, and if they do, it won't display this item in the menu.
41
+ type : ' !has permission'
42
+ permission : ' group.vip'
43
+
44
+ has_vip : # This item will show in the menu if the player already have the vip rank or a higher rank.
45
+ material : copper_ingot
46
+ slot : 2
71
47
priority : 2
72
48
display_name : ' &eVIP Rank'
73
49
lore :
@@ -77,58 +53,194 @@ items:
77
53
- ' '
78
54
- ' &aPURCHASED!'
79
55
80
- vipplus :
81
- material : diamond
82
- slot : 4
56
+
57
+
58
+ does_not_have_vipplus :
59
+ material : iron_ingot
60
+ slot : 3
83
61
priority : 1
84
62
display_name : ' &eVIP+ Rank'
85
63
lore :
86
64
- ' '
87
65
- ' &7Rank: &eVIP+'
88
66
- ' &7Cost: &a$600'
89
67
- ' '
90
- - ' &8Left click to purchase.'
91
- left_click_commands :
92
- - ' [takemoney] 600' # We take the 600
93
- - ' [console] lp user %player_name% parent add vipplus ' # We give them the vipplus rank
94
- left_click_requirement :
68
+ - ' &8Click to purchase.'
69
+ click_commands :
70
+ - ' [takemoney] 600'
71
+ - ' [console] lp user %player_name% promote rankup '
72
+ click_requirement :
95
73
requirements :
96
- owns_vip : # This requirement will check if they have the vip rank, and if they don't, it won't allow them to purchase this rank
97
- type : string equals ignorecase
98
- input : ' %luckperms_in_group_vip%'
99
- output : ' yes'
74
+ no_rank :
75
+ type : ' !has permission'
76
+ permission : ' group.vipplus'
100
77
deny_commands :
101
- - ' [message]&cYou need the rank &eVIP&c to purchase this rank'
78
+ - ' [message]&cYou already own this or a higher rank! '
102
79
- ' [close]'
103
- no_rank : # This requirement will check if they have the rank, and if they do, it won't allow them to purchase the rank
104
- type : string equals ignorecase
105
- input : ' %luckperms_in_group_vipplus%'
106
- output : ' no'
80
+ money :
81
+ type : has money
82
+ amount : 600
107
83
deny_commands :
108
- - ' [message]&cYou already own this rank !'
84
+ - ' [message]&cYou don '' t have enough money !'
109
85
- ' [close]'
110
- money : # This requirement will check if they have 600$ and if they don't, it won't allow them to purchase the rank
86
+ view_requirement :
87
+ requirements :
88
+ no_rank :
89
+ type : ' !has permission'
90
+ permission : ' group.vipplus'
91
+
92
+ has_vipplus :
93
+ material : iron_ingot
94
+ slot : 3
95
+ priority : 2
96
+ display_name : ' &eVIP+ Rank'
97
+ lore :
98
+ - ' '
99
+ - ' &7Rank: &eVIP+'
100
+ - ' &7Cost: &a$600+'
101
+ - ' '
102
+ - ' &aPURCHASED!'
103
+
104
+
105
+
106
+ does_not_have_mvp :
107
+ material : gold_ingot
108
+ slot : 4
109
+ priority : 1
110
+ display_name : ' &eMVP Rank'
111
+ lore :
112
+ - ' '
113
+ - ' &7Rank: &eMVP'
114
+ - ' &7Cost: &a$700'
115
+ - ' '
116
+ - ' &8Click to purchase.'
117
+ click_commands :
118
+ - ' [takemoney] 700'
119
+ - ' [console] lp user %player_name% promote rankup'
120
+ click_requirement :
121
+ requirements :
122
+ no_rank :
123
+ type : ' !has permission'
124
+ permission : ' group.mvp'
125
+ deny_commands :
126
+ - ' [message]&cYou already own this or a higher rank!'
127
+ - ' [close]'
128
+ money :
111
129
type : has money
112
- amount : 600
130
+ amount : 700
113
131
deny_commands :
114
132
- ' [message]&cYou don'' t have enough money!'
115
133
- ' [close]'
116
- view_requirement : # This requirement will check if they have the rank, and if they do it will show the has_vipplus item instead.
134
+ view_requirement :
117
135
requirements :
118
136
no_rank :
119
- type : string equals ignorecase
120
- input : ' %luckperms_in_group_vipplus%'
121
- output : ' no'
137
+ type : ' !has permission'
138
+ permission : ' group.mvp'
139
+
140
+ has_mvp :
141
+ material : gold_ingot
142
+ slot : 4
143
+ priority : 2
144
+ display_name : ' &eMVP Rank'
145
+ lore :
146
+ - ' '
147
+ - ' &7Rank: &eMVP'
148
+ - ' &7Cost: &a$700+'
149
+ - ' '
150
+ - ' &aPURCHASED!'
151
+
152
+
153
+
154
+ does_not_have_mvpplus :
155
+ material : emerald
156
+ slot : 5
157
+ priority : 1
158
+ display_name : ' &eMVP+ Rank'
159
+ lore :
160
+ - ' '
161
+ - ' &7Rank: &eMVP+'
162
+ - ' &7Cost: &a$800'
163
+ - ' '
164
+ - ' &8Click to purchase.'
165
+ click_commands :
166
+ - ' [takemoney] 800'
167
+ - ' [console] lp user %player_name% promote rankup'
168
+ click_requirement :
169
+ requirements :
170
+ no_rank :
171
+ type : ' !has permission'
172
+ permission : ' group.mvpplus'
173
+ deny_commands :
174
+ - ' [message]&cYou already own this or a higher rank!'
175
+ - ' [close]'
176
+ money :
177
+ type : has money
178
+ amount : 800
179
+ deny_commands :
180
+ - ' [message]&cYou don'' t have enough money!'
181
+ - ' [close]'
182
+ view_requirement :
183
+ requirements :
184
+ no_rank :
185
+ type : ' !has permission'
186
+ permission : ' group.mvpplus'
187
+
188
+ has_mvpplus :
189
+ material : emerald
190
+ slot : 5
191
+ priority : 2
192
+ display_name : ' &eMVP+ Rank'
193
+ lore :
194
+ - ' '
195
+ - ' &7Rank: &eMVP+'
196
+ - ' &7Cost: &a$800+'
197
+ - ' '
198
+ - ' &aPURCHASED!'
199
+
122
200
123
201
124
- has_vipplus : # This item will show up if they already have the vip rank
202
+ does_not_have_mvpplusplus :
125
203
material : diamond
126
- slot : 4
204
+ slot : 6
205
+ priority : 1
206
+ display_name : ' &eMVP++ Rank'
207
+ lore :
208
+ - ' '
209
+ - ' &7Rank: &eMVP++'
210
+ - ' &7Cost: &a$900'
211
+ - ' '
212
+ - ' &8Click to purchase.'
213
+ click_commands :
214
+ - ' [takemoney] 900'
215
+ - ' [console] lp user %player_name% promote rankup'
216
+ click_requirement :
217
+ requirements :
218
+ no_rank :
219
+ type : ' !has permission'
220
+ permission : ' group.mvpplusplus'
221
+ deny_commands :
222
+ - ' [message]&cYou already own this or a higher rank!'
223
+ - ' [close]'
224
+ money :
225
+ type : has money
226
+ amount : 900
227
+ deny_commands :
228
+ - ' [message]&cYou don'' t have enough money!'
229
+ - ' [close]'
230
+ view_requirement :
231
+ requirements :
232
+ no_rank :
233
+ type : ' !has permission'
234
+ permission : ' group.mvpplusplus'
235
+
236
+ has_mvpplusplus :
237
+ material : diamond
238
+ slot : 6
127
239
priority : 2
128
- display_name : ' &eVIP + Rank'
240
+ display_name : ' &eMVP+ + Rank'
129
241
lore :
130
242
- ' '
131
- - ' &7Rank: &eVIP +'
132
- - ' &7Cost: &a$600 '
243
+ - ' &7Rank: &eMVP+ +'
244
+ - ' &7Cost: &a$900+ '
133
245
- ' '
134
246
- ' &aPURCHASED!'
0 commit comments