-
Notifications
You must be signed in to change notification settings - Fork 44
/
store.yml
192 lines (188 loc) · 8.78 KB
/
store.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
# ---------------------------------------------------------------------- #
# THIS MENU WAS MADE USING DELUXEMENUS v1.13.7 #
# ---------------------------------------------------------------------- #
# #
# NOTE: This menu was made for a seperate yaml-file! #
# Add the following code to the config.yml of DeluxeMenus and #
# reload the plugin (/dm reload). #
# #
# gui_menus: #
# store: #
# file: store.yml #
# #
# Add the above code in the config.yml and the content for the right #
# shop (from "items:" to "### End of <...> shop") in the store.yml, that #
# you'll be finding in the newly created gui_menus folder. #
# ---------------------------------------------------------------------- #
##########################################################################
# + ------------------------------------------------------------------ + #
# | VAULT ECONOMY | #
# + ------------------------------------------------------------------ + #
##########################################################################
items:
'0':
material: GRANITE
slot: 0
display_name: '&fGranite'
lore:
- ''
- "&8• &7Buy for: &c$&f100"
- "&8• &7Sell for: &a$&f25"
- ''
- '&8Left click to buy'
- '&8Right click to sell'
- ''
left_click_requirement:
requirements:
anything_here:
type: has money
amount: 100
deny_commands:
- '[message] &6Shop &8> &7You need &c$100 &fto buy &c1 x Granite&f.'
right_click_requirement:
requirements:
anything_here:
type: has item # https://wiki.helpch.at/clips-plugins/deluxemenus/options-and-configurations/requirements#has-item
material: 'GRANITE'
strict: true
deny_commands:
- '[message] &6Shop &8> &fYou don''t have &c1 x Granite &fto sell.'
left_click_commands:
- '[console] eco take %player_name% 100'
- '[console] minecraft:give %player_name% granite 1' # By adding "minecraft:" we avoid accidentally using a command from a plugin like Essentials
- '[message] &6Shop &8> &fYou bought &a1 x Granite &ffor &a$100&f.'
right_click_commands:
- '[console] eco give %player_name% 25'
- '[console] minecraft:clear %player_name% granite 1' # By adding "minecraft:" we avoid accidentally using a command from a plugin like Essentials
- '[message] &6Shop &8> &fYou sold &a1 x Granite &ffor &a$25&f.'
### End of the vault economy shop
##########################################################################
# + ------------------------------------------------------------------ + #
# | TOKEN ENCHANT ECONOMY | #
# + ------------------------------------------------------------------ + #
##########################################################################
items:
'0':
material: GRANITE
slot: 0
display_name: '&fGranite'
lore:
- ''
- "&8• &7Buy for: &f100 &cTokens"
- "&8• &7Sell for: &f25 &aTokens"
- ''
- '&8Left click to buy'
- '&8Right click to sell'
- ''
left_click_requirement:
requirements:
anything_here:
type: '>='
input: '%tokenenchant_token_long%'
output: '100'
deny_commands:
- '[message] &6Shop &8> &7You need &c100 Tokens &fto buy &c1 x Granite&f.'
right_click_requirement:
requirements:
anything_here:
type: has item # https://wiki.helpch.at/clips-plugins/deluxemenus/options-and-configurations/requirements#has-item
material: 'GRANITE'
strict: true
deny_commands:
- '[message] &6Shop &8> &7You don''t have &c1 x Granite &fto sell.'
left_click_commands:
- '[console] te remove %player_name% 100'
- '[console] minecraft:give %player_name% granite 1' # By adding "minecraft:" we avoid accidentally using a command from a plugin like Essentials
- '[message] &6Shop &8> &fYou bought &a1 x Granite &ffor &a100 Tokens&f.'
right_click_commands:
- '[console] te add %player_name% 25'
- '[console] minecraft:clear %player_name% granite 1' # By adding "minecraft:" we avoid accidentally using a command from a plugin like Essentials
- '[message] &6Shop &8> &fYou sold &a1 x Granite &ffor &a25 Tokens&f.'
### End of the token enchant shop
##########################################################################
# + ------------------------------------------------------------------ + #
# | PLAYER POINTS ECONOMY | #
# + ------------------------------------------------------------------ + #
##########################################################################
items:
'0':
material: GRANITE
slot: 0
display_name: '&fGranite'
lore:
- ''
- "&8• &7Buy for: &f100 &cPoints"
- "&8• &7Sell for: &f25 &aPoints"
- ''
- '&8Left click to buy'
- '&8Right click to sell'
- ''
left_click_requirement:
requirements:
anything_here:
type: '>='
input: '%playerpoints_points%'
output: '100'
deny_commands:
- '[message] &6Shop &8> &7You need &c100 Points &fto buy &c1 x Granite&f.'
right_click_requirement:
requirements:
anything_here:
type: has item # https://wiki.helpch.at/clips-plugins/deluxemenus/options-and-configurations/requirements#has-item
material: 'GRANITE'
strict: true
deny_commands:
- '[message] &6Shop &8> &7You don''t have &c1 x Granite &fto sell.'
left_click_commands:
- '[console] points take %player_name% 100'
- '[console] minecraft:give %player_name% granite 1' # By adding "minecraft:" we avoid accidentally using a command from a plugin like Essentials
- '[message] &6Shop &8> &fYou bought &a1 x Granite &ffor &a100 Points&f.'
right_click_commands:
- '[console] points give %player_name% 25'
- '[console] minecraft:clear %player_name% granite 1' # By adding "minecraft:" we avoid accidentally using a command from a plugin like Essentials
- '[message] &6Shop &8> &fYou sold &a1 x Granite &ffor &a25 Points&f.'
### End of the player points shop
##########################################################################
# + ------------------------------------------------------------------ + #
# | PLAYER XP ECONOMY | #
# + ------------------------------------------------------------------ + #
##########################################################################
# You can use this placeholder %player_level% instead of total xp to check the level.
items:
'0':
material: GRANITE
slot: 0
display_name: '&fGranite'
lore:
- ''
- "&8• &7Buy for: &f2 XP-Level"
- "&8• &7Sell for: &f1 XP-Level"
- ''
- '&8Left click to buy'
- '&8Right click to sell'
- ''
left_click_requirement:
requirements:
anything_here:
type: '>='
input: '%player_total_exp%'
output: '16' # Used in-game parsing for calculation for 1.20.1. This website seems outdated: http://www.pernsteiner.org/minecraft/levelcalc.html for calculation
deny_commands:
- '[message] &6Shop &8> &7You need &c2 XP-Levels (16 XP) &fto buy &c1 x Granite&f.'
right_click_requirement:
requirements:
anything_here:
type: has item # https://wiki.helpch.at/clips-plugins/deluxemenus/options-and-configurations/requirements#has-item
material: 'GRANITE'
strict: true
deny_commands:
- '[message] &6Shop &8> &7You don''t have &c1 x Granite &fto sell.'
left_click_commands:
- '[console] xp give %player_name% -2L' # We need to "give" a negative amount, to remove XP :-/
- '[console] minecraft:give %player_name% granite 1' # By adding "minecraft:" we avoid accidentally using a command from a plugin like Essentials
- '[message] &6Shop &8> &fYou bought &a1 x Granite &ffor &a2 XP-Level&f.'
right_click_commands:
- '[console] xp give %player_name% 1L' # L means Level. You could also just type 17 for 17 XP.
- '[console] minecraft:clear %player_name% granite 1' # By adding "minecraft:" we avoid accidentally using a command from a plugin like Essentials
- '[message] &6Shop &8> &fYou sold &a1 x Granite &ffor &a1 XP-Level&f.'
### End of the XP economy shop