Решено Беда с плагином ChestCommand. При попытке устроиться на работу не работает меню

777Sergey777

Активный участник
Пользователь
Баллы
66
Создаю меню для плагина Jobs, встретился с такой проблемой:
Меню создано, но при выборе "Устроиться на работу" список работ появляется и сразу проподает.
######################
#+ +#
# MENU SETTINGS #
#+ +#
######################

menu-settings:

# name - appears as the title - REQUIRED
name: 'Работа'

# rows - the number of rows of the chest - REQUIRED
rows: 3

# command - OPTIONAL (you can remove this or set it to '')
# Bind multiple commands using ; (command: 'menu; m; me')
command: 'jobs'

# auto-refresh - OPTIONAL
# How frequently the menu will be refreshed, in seconds.
# Useful if you have variables in items' descriptions.
auto-refresh: 5

# This command command will be execute when the menu is opened.
# Supports all the icon command types.
open-action: 'sound: note bass'

# open-with-item - OPTIONAL
# The menu will open only right-clicking with orange wool [35:1]
open-with-item:
id: 341
left-click: true
right-click: true


######################
#+ +#
# ITEMS #
#+ +#
######################

jobsbrowse:
COMMAND: 'jobs browse'
NAME: 'Устроиться на работу'
LORE:
ID: 282
POSITION-X: 3
POSITION-Y: 1

jobsstats:
COMMAND: 'jobs stats'
NAME: 'Статистика профессий'
LORE:
ID: 340
POSITION-X: 5
POSITION-Y: 1
jobsleave:
COMMAND: 'jobsl'
NAME: 'Уволиться с работы'
LORE:
ID: 281
POSITION-X: 7
POSITION-Y: 1
JobsBrowse:
# Do you want to show total amount of workers for job in jobs browse window
ShowTotalWorkers: true
# Do you want to show GUI when performing /jobs join command
ShowPenaltyBonus: true
JobsGUI:
# Do you want to show GUI when performing /jobs browse command
OpenOnBrowse: true
# Do you want to show chat information when performing /jobs browse command
ShowChatBrowse: true
# With true left mouse button will join job and right will show more info
# With false left mouse button will show more info, rigth will join job
# Dont forget to adjust locale file
SwitcheButtons: true
OpenOnJoin: true
 
Последнее редактирование:
Название темы смени. А то я не сразу понял, что ты объясняешь.
 
Доброй ночи. Попробуйте вот это.


PHP:
######################
#+ +#
# MENU SETTINGS #
#+ +#
######################

menu-settings:

# name - appears as the title - REQUIRED
name: 'Работа'

# rows - the number of rows of the chest - REQUIRED
rows: 3

# command - OPTIONAL (you can remove this or set it to '')
# Bind multiple commands using ; (command: 'menu; m; me')
command: 'jobsmenu'

# auto-refresh - OPTIONAL
# How frequently the menu will be refreshed, in seconds.
# Useful if you have variables in items' descriptions.
auto-refresh: 5

# This command command will be execute when the menu is opened.
# Supports all the icon command types.
open-action: 'sound: note bass'

# open-with-item - OPTIONAL
# The menu will open only right-clicking with orange wool [35:1]
open-with-item:
id: 341
left-click: true
right-click: true


######################
#+ +#
# ITEMS #
#+ +#
######################

jobsbrowse:
COMMAND: 'jobs join browse'
NAME: 'Устроиться на работу'
LORE:
ID: 282
POSITION-X: 3
POSITION-Y: 1

jobsstats:
COMMAND: 'jobs join stats'
NAME: 'Статистика профессий'
LORE:
ID: 340
POSITION-X: 5
POSITION-Y: 1
jobsleave:
COMMAND: 'jobs leave'
NAME: 'Уволиться с работы'
LORE:
ID: 281
POSITION-X: 7
POSITION-Y: 1
 
Забыл поставить
KEEP-OPEN: true



jobs:
COMMAND: 'jobs browse'
NAME: '&3Профессии'
LORE:
- '&7Выбирите себе профессию'
- '&7по нраву. Развивайте свои'
- '&7умения, зарабатывайте деньги.'
- '&7Доступно 3 профессии'
- '&7для каждого игрока.'
ID: 278
KEEP-OPEN: true
POSITION-X: 6
POSITION-Y: 3
 
Забыл поставить
KEEP-OPEN: true



jobs:
COMMAND: 'jobs browse'
NAME: '&3Профессии'
LORE:
- '&7Выбирите себе профессию'
- '&7по нраву. Развивайте свои'
- '&7умения, зарабатывайте деньги.'
- '&7Доступно 3 профессии'
- '&7для каждого игрока.'
ID: 278
KEEP-OPEN: true
POSITION-X: 6
POSITION-Y: 3

Спасибо, добрый человек, только я уже решил это :3
 
Назад
Верх Низ