Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
4 contributors

Users who have contributed to this file

@Andre601 @iGabyTM @cj89898 @aBooDyy
180 lines (175 sloc) 7.58 KB
# ---------------------------------------------------------------------- #
# THIS MENU WAS MADE USING DELUXEMENUS v1.10.5 #
# ---------------------------------------------------------------------- #
# #
# 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: stone
data: 1
slot: 0
display_name: '&fGranite'
lore:
- '&8* &7Buy for: &c$&f100'
- '&8* &7Sell for: &a$&f25'
left_click_requirement:
requirements:
anything_here:
type: has money
amount: 100
deny_commands:
- '[message] &4Shop &8> &fYou need &c$100 &fto buy &c1 x Granite&f.'
right_click_requirement:
requirements:
anything_here:
type: string equals
input: '%checkitem_mat:STONE,data:1%'
output: 'yes'
deny_commands:
- '[message] &4Shop &8> &fYou don''t have &c1 x Granite &fto sell.'
left_click_commands:
- '[console] eco take %player_name% 100'
- '[console] give %player_name% stone:1 1'
- '[message] &2Shop &8> &fYou bought &a1 x Granite &ffor &a$100&f.'
right_click_commands:
- '[console] eco give %player_name% 25'
- '[console] clear %player_name% stone:1 1'
- '[message] &2Shop &8> &fYou sold &a1 x Granite &ffor &a$25&f.'
### End of the vault economy shop
##########################################################################
# + ------------------------------------------------------------------ + #
# | TOKEN ENCHANT ECONOMY | #
# + ------------------------------------------------------------------ + #
##########################################################################
# The placeholder used in the left click requirement is a JavaScript placeholder made by TE's author
# to be able to use tokens in DM requirement.
# Check this for more info about it. https://www.spigotmc.org/wiki/placeholderapi-javascript-expansion-scripts/#tokenenchant-token-value
items:
'0':
material: stone
data: 1
slot: 0
display_name: '&fGranite'
lore:
- '&8* &7Buy for: &f100 &cTokens'
- '&8* &7Sell for: &f25 &aTokens'
left_click_requirement:
requirements:
anything_here:
type: '>='
input: '%javascript_tokenenchant_token%' # Check line 62-64 for more info about this placeholder.
output: '100'
deny_commands:
- '[message] &4Shop &8> &fYou need &c100 Tokens &fto buy &c1 x Granite&f.'
right_click_requirement:
requirements:
anything_here:
type: string equals
input: '%checkitem_mat:STONE,data:1%'
output: 'yes'
deny_commands:
- '[message] &4Shop &8> &fYou don''t have &c1 x Granite &fto sell.'
left_click_commands:
- '[console] te remove %player_name% 100'
- '[console] give %player_name% stone:1 1'
- '[message] &2Shop &8> &fYou bought &a1 x Granite &ffor &a100 Tokens&f.'
right_click_commands:
- '[console] te add %player_name% 25'
- '[console] clear %player_name% stone:1 1'
- '[message] &2Shop &8> &fYou sold &a1 x Granite &ffor &a25 Tokens&f.'
### End of the token enchant shop
##########################################################################
# + ------------------------------------------------------------------ + #
# | PLAYER POINTS ECONOMY | #
# + ------------------------------------------------------------------ + #
##########################################################################
items:
'0':
material: stone
data: 1
slot: 0
display_name: '&fGranite'
lore:
- '&8* &7Buy for: &f100 &cPoints'
- '&8* &7Sell for: &f25 &aPoints'
left_click_requirement:
requirements:
anything_here:
type: '>='
input: '%playerpoints_points%'
output: '100'
deny_commands:
- '[message] &4Shop &8> &fYou need &c100 Points &fto buy &c1 x Granite&f.'
right_click_requirement:
requirements:
anything_here:
type: string equals
input: '%checkitem_mat:STONE,data:1%'
output: 'yes'
deny_commands:
- '[message] &4Shop &8> &fYou don''t have &c1 x Granite &fto sell.'
left_click_commands:
- '[console] points take %player_name% 100'
- '[console] give %player_name% stone:1 1'
- '[message] &2Shop &8> &fYou bought &a1 x Granite &ffor &a100 Points&f.'
right_click_commands:
- '[console] points give %player_name% 25'
- '[console] clear %player_name% stone:1 1'
- '[message] &2Shop &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: stone
data: 1
slot: 0
display_name: '&fGranite'
lore:
- '&8* &7Buy for: &f2 XP-Level'
- '&8* &7Sell for: &f1 XP-Level'
left_click_requirement:
requirements:
anything_here:
type: '>='
input: '%player_total_exp%'
output: '34' # Used http://www.pernsteiner.org/minecraft/levelcalc.html for calculation
deny_commands:
- '[message] &4Shop &8> &fYou need &c2 XP-Levels (34 XP) &fto buy &c1 x Granite&f.'
right_click_requirement:
requirements:
anything_here:
type: string equals
input: '%checkitem_mat:STONE,data:1%'
output: 'yes'
deny_commands:
- '[message] &4Shop &8> &fYou 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] give %player_name% stone:1 1'
- '[message] &2Shop &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] clear %player_name% stone:1 1'
- '[message] &2Shop &8> &fYou sold &a1 x Granite &ffor &a1 XP-Level&f.'
### End of the XP economy shop
You can’t perform that action at this time.