Bonjour ,depuis hier soir j'essaye de créer un menu depuis le plugin chestcommands ce qui ne devrait pas être très difficile je pense mais seulement après plusieurs tentatives toujoursle même message quand j'actualise le plugin :
"[ChestCommands] Plugin reloaded with 1 error(s)."
"[ChestCommands] Please check the console"
Plugin reloaded with 1 error(s) -> Plugin actualisé avec une erreur .
Please check the console -> S'il vous plait regardez la console .
Après ceci je vais voir la console et je vois ceci :
"
1) Invalid YAML configuration for the menu "menu.yml". Please look at the error above, or use an online YAML parser (google is your friend)."
Je ne comprend pas vraiment donc c'est pour ceci que je vous demande de l'aide pour trouver le bug de mon plugin je vous met la configuration ci-dessous :
######################
#+ +#
# MENU SETTINGS #
#+ +#
######################
menu-settings:
# name - appears as the title - REQUIRED
name: '&1Menu principal'
# 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: 'menu'
# 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 pling; tell: &fVous avez ouvert le menu principal.'
# open-with-item - OPTIONAL
# The menu will open only right-clicking with orange wool [35:1]
open-with-item:
id: bedrock
left-click: false
right-click: true
######################
#+ +#
# ITEMS #
#+ +#
######################
spawncmd:
COMMAND: 'spawn'
NAME: '&c/Spawn'
LORE:
- 'Clique sur ce lit'
- 'pour te téléporter au spawn.'
ID: bed
POSITION-X: 5
POSITION-Y: 2
site:
COMMAND: 'console: msg {player} &4Site en maintenance !'
NAME: '&4Site.'
LORE:
- 'Clique pour avoir le lien du site.'
ID: command block
POSITION-X: 1
POSITION-Y: 1
Shop:
COMMAND: 'shop'
NAME: '&bShop'
LORE:
- 'Clique sur ce diamant'
- 'Pour ouvrir le shop.'
ID: diamond
POSITION-X: 9
POSITION-Y: 1
ishome:
COMMAND: 'island home'
NAME: '&6This message contains some placeholders'
LORE:
- 'Clique sur ce bloc d'herbe'
- 'Pour aller a ton île.'
ID: grass
POSITION-X: 1
POSITION-Y: 3
kits:
COMMAND: 'chestcommands open kitmenu {player}'
NAME: '&6Kits'
LORE:
- 'Ouvrir la liste des kits.'
ID: golden sword
POSITION-X: 9
POSITION-Y: 3
J'ai créer un autre menu pour les kits et celui-ci fonctionne .
Merci de prendre en compte mon message
"[ChestCommands] Plugin reloaded with 1 error(s)."
"[ChestCommands] Please check the console"
Plugin reloaded with 1 error(s) -> Plugin actualisé avec une erreur .
Please check the console -> S'il vous plait regardez la console .
Après ceci je vais voir la console et je vois ceci :
"
1) Invalid YAML configuration for the menu "menu.yml". Please look at the error above, or use an online YAML parser (google is your friend)."
Je ne comprend pas vraiment donc c'est pour ceci que je vous demande de l'aide pour trouver le bug de mon plugin je vous met la configuration ci-dessous :
######################
#+ +#
# MENU SETTINGS #
#+ +#
######################
menu-settings:
# name - appears as the title - REQUIRED
name: '&1Menu principal'
# 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: 'menu'
# 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 pling; tell: &fVous avez ouvert le menu principal.'
# open-with-item - OPTIONAL
# The menu will open only right-clicking with orange wool [35:1]
open-with-item:
id: bedrock
left-click: false
right-click: true
######################
#+ +#
# ITEMS #
#+ +#
######################
spawncmd:
COMMAND: 'spawn'
NAME: '&c/Spawn'
LORE:
- 'Clique sur ce lit'
- 'pour te téléporter au spawn.'
ID: bed
POSITION-X: 5
POSITION-Y: 2
site:
COMMAND: 'console: msg {player} &4Site en maintenance !'
NAME: '&4Site.'
LORE:
- 'Clique pour avoir le lien du site.'
ID: command block
POSITION-X: 1
POSITION-Y: 1
Shop:
COMMAND: 'shop'
NAME: '&bShop'
LORE:
- 'Clique sur ce diamant'
- 'Pour ouvrir le shop.'
ID: diamond
POSITION-X: 9
POSITION-Y: 1
ishome:
COMMAND: 'island home'
NAME: '&6This message contains some placeholders'
LORE:
- 'Clique sur ce bloc d'herbe'
- 'Pour aller a ton île.'
ID: grass
POSITION-X: 1
POSITION-Y: 3
kits:
COMMAND: 'chestcommands open kitmenu {player}'
NAME: '&6Kits'
LORE:
- 'Ouvrir la liste des kits.'
ID: golden sword
POSITION-X: 9
POSITION-Y: 3
J'ai créer un autre menu pour les kits et celui-ci fonctionne .
Merci de prendre en compte mon message