Вопрос DeluxeMenus

kick_banchik

Пользователь
Сообщения
21
Разрешается выкладывание кода, файлов конфигураций, логов и т.д. только под BB-код CODE
Плагин
deluxemenu
Ядро сервера
  1. Paper
Версия сервера
  1. 1.16.5
Ссылка
https://www.spigotmc.org/resources/deluxemenus.11734/
Пытался сделать обменника игровой валюты на донат валюту, всё получилось кроме одного, когда баланс игрока меньше стоимости обмена игровой валюты на донат валюту меню не открывается, такого не должно быть, меню должно открываться.ПОЖАЛУЙСТА помогите мне




# A DeluxeMenus basic configuration guide for beginners
#=========================================================
#
# This note will help you understand the basic functions and configuring of DeluxeMenus: commands, requirements, items and others, and from then on you can start to work with more advanced stuff. You can delete this note or any note below at any time. But if you are still here anyway, then let's move down below
#

# Open Command
#
# This setting is the command that will be used to open this menu. Supports normal String or a String List
# NOTE: Use "open_command: []" to create a menu with no commands needed
#
# open_command:
# open_command: <command>
# - <command1>
# - <command2>
#
open_command: exchange

# Size
#
# This allows you to set the size of the menu inventory. Range from 9-54.
# If this option is not present in the menu configuration, it will default to 54.
#
size: 45

# Menu title
#
# This is the title of the menu. You can change it with your custom name
# Color codes and placeholders are supported
#
menu_title: '&#FF0000★ &#FF0000&lГ&#E70000&lо&#CE0000&lм&#B60000&lе&#9D0000&lр'
register_command: true
update_interval: 1
# Open requirement
#
# This setting section allows you to define requirements the menu viewer must meet
# to be allowed to open this menu in game.
#
# Any menu you want to restrict access to based on permission
# should have a basic "has permission" requirement
#
# This setting and requirements can be explained more in depth by checking out
# the requirements_menu.yml file in your menus folder.
# For full reference, check
#
open_requirement:
requirements:
location_check:
type: is near
location: "world,33,11,30"
distance: 5
deny_commands:
- '[message] &fВы должны находиться рядом с NPC'
items:
'exchange_unavailable':
material: basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZjE0ZWZjZTQ0MzFlMmFmYzYzNjQwYjUwZjc3ZmNlMWRmODYxNzU1N2U0ZGJkNmE2MWNkOTAyOTIyY2Q4OWQwNiJ9fX0=
slot: 22
priority: 0
display_name: " "
lore:
  • ' &6◎ &6Обмен Валюты ◎ '
  • ' '
  • ' &6⛁ &e1.000.000 &7» &#FF00F9❖ 10'
  • ''
  • '&cУ вас недостаточно денег'
  • ' &cОбмен невозможен '
  • ''
  • ' &4● &cНедостаточно денег &4● '
  • ''
view_requirement:
requirements:
balance_check:
type: javascript
expression: '%vault_eco_balance_fixed% < 1000000'

'exchange_unavailable':
material: basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZjE0ZWZjZTQ0MzFlMmFmYzYzNjQwYjUwZjc3ZmNlMWRmODYxNzU1N2U0ZGJkNmE2MWNkOTAyOTIyY2Q4OWQwNiJ9fX0=
slot: 22
priority: 1
display_name: " "
lore:
  • ' &6◎ &6Обмен Валюты ◎ '
  • ' '
  • ' &6⛁ &e1.000.000 &7» &#FF00F9❖ 10 '
  • ''
  • '&fОбменяйте &eденьги &fна &#E903E4&lᴇ&#DE04D9&lꜰ&#D306CF&lɪ&#C907C4&lʀ&#BE08B9&lɪ&#B30AAF&lᴜ&#A80BA4&lᴍ&#9D0D9A&ls'
  • ' &fПрисутствует кулдаун '
  • ' &fПосле обмена'
  • ''
  • ' &2● &aНажмите для обмена &2● '
  • ''
view_requirement:
requirements:
balance_check:
type: javascript
expression: '%vault_eco_balance_fixed% >= 1000000'
group_check:
type: string equals
input: '%luckperms_inherits_group_default%'
output: 'no'
cooldown_check:
type: string equals
input: '%luckperms_has_permission_exchange.cooldown%'
output: 'no'
left_click_requirement:
requirement:
balance_check:
type: javascript
expression: '%vault_eco_balance_fixed% >= 1000000'
deny_commands:
- '[message] &eНедостаточно денег на балансе'
left_click_commands:
  • '[console] lp user %player_name% permission settemp exchange.cooldown true 24h'
  • '[takemoney] 1000000'
  • '[console] points give %player_name% 10'
  • '[message]'
  • '[message] &fВы &aуспешно &fобменяли &6⛁ &e1.000.000 &fна &#FF00F9❖ 10'
  • '[message] &fСледующий обмен возможен через &a24 часа'
  • '[message]'
  • '[sound] ENTITY_VILLAGER_TRADE'
  • '[close]'
 
Назад
Сверху Снизу