- Плагин
- DeluxуMenus
- Ядро сервера
- Paper
- Версия сервера
- 1.21
В DeluxeMenus я хочу сделать меню где можно покупать кейсы за поинты (Кейсы из плагина DonateCase а поинты из PlayerPoints) но у меня нечего не получается
Конфиг:
Конфиг:
Код:
menu_title: ' &f&lКейсы'
open_command:
- keisi
register_command: false
size: 45
open_requirement:
requirements:
permission:
type: has permission
permission: deluxemenus.donate
deny_commands:
- '[message] &cYou don''t have permission to do that!'
items:
'pane':
material: LIME_STAINED_GLASS_PANE
slot: 0
display_name: ' '
'pane1':
material: LIME_STAINED_GLASS_PANE
slot: 1
display_name: ' '
'pane2':
material: GREEN_STAINED_GLASS_PANE
slot: 3
display_name: ' '
'pane3':
material: GREEN_STAINED_GLASS_PANE
slot: 4
display_name: ' '
'pane4':
material: GREEN_STAINED_GLASS_PANE
slot: 5
display_name: ' '
'pane5':
material: LIME_STAINED_GLASS_PANE
slot: 7
display_name: ' '
'pane6':
material: LIME_STAINED_GLASS_PANE
slot: 8
display_name: ' '
'pane7':
material: LIME_STAINED_GLASS_PANE
slot: 9
display_name: ' '
'pane8':
display_name: ' '
material: LIME_STAINED_GLASS_PANE
slot: 17
display_name: ' '
'pane9':
material: GREEN_STAINED_GLASS_PANE
slot: 27
display_name: ' '
'pane10':
material: GREEN_STAINED_GLASS_PANE
slot: 36
display_name: ' '
'pane11':
material: GREEN_STAINED_GLASS_PANE
slot: 37
display_name: ' '
'pane12':
material: LIME_STAINED_GLASS_PANE
slot: 39
display_name: ' '
'pane13':
material: LIME_STAINED_GLASS_PANE
slot: 40
display_name: ' '
'pane14':
material: LIME_STAINED_GLASS_PANE
slot: 41
display_name: ' '
'pane15':
material: GREEN_STAINED_GLASS_PANE
slot: 43
display_name: ' '
'pane16':
material: GREEN_STAINED_GLASS_PANE
slot: 44
display_name: ' '
'pane17':
material: GREEN_STAINED_GLASS_PANE
slot: 35
display_name: ' '
'pane18':
material: ORANGE_SHULKER_BOX
lore:
- ''
- '&6Ⓟ &eЦена: &638 Поинтов'
- ''
- '&6Ⓟ &eБаланс: &6%playerpoints_points_shorthand% Поинтов'
- ''
slot: 20
display_name: '&6&lКейс с Монетами'
left_click_requirement:
requirements:
check_stone_in_hand:
type: string equals
input: '%checkitem_mat:points,amt:38%'
output: 'yes'
deny_commands:
- '[sound] BLOCK_NOTE_BLOCK_IRON_XYLOPHONE'
- '[message]'
- '[message]&2Недостаточно &aпоинтов&2, &2нужно &a38 &2шт.!'
- '[message]'
left_click_commands:
- '[console] points take %player_name% 38'
- '[console] dc givekey %player_name% money 1'
'pane19':
material: CYAN_SHULKER_BOX
lore:
- ''
- '&6Ⓟ &eЦена: &680 Поинтов'
- ''
- '&6Ⓟ &eБаланс: &6%playerpoints_points_shorthand% Поинтов'
- ''
slot: 22
display_name: '&3&lДонат-кейс'
left_click_requirement:
requirements:
check_stone_in_hand:
type: string equals
input: '%checkitem_mat:points,amt:1%'
output: 'yes'
deny_commands:
- '[sound] BLOCK_NOTE_BLOCK_IRON_XYLOPHONE'
- '[message]'
- '[message]&2Недостаточно &aпоинтов&2, &2нужно &a80 &2шт.!'
- '[message]'
left_click_commands:
- '[console] points take %player_name% 80'
- '[console] dc givekey %player_name% case 1'
'pane20':
material: WHITE_SHULKER_BOX
lore:
- ''
- '&6Ⓟ &eЦена: &628 Поинтов'
- ''
- '&6Ⓟ &eБаланс: &6%playerpoints_points_shorthand% Поинтов'
- ''
slot: 24
display_name: '&f&lКейс с Предметами'
left_click_requirement:
requirements:
check_stone_in_hand:
type: string equals
input: '%checkitem_mat:points,amt:1%'
output: 'yes'
deny_commands:
- '[sound] BLOCK_NOTE_BLOCK_IRON_XYLOPHONE'
- '[message]'
- '[message]&2Недостаточно &aпоинтов&2, &2нужно &a28 &2шт.!'
- '[message]'
left_click_commands:
- '[console] points take %player_name% 28'
- '[console] dc givekey %player_name% predmeti 1'