Configuration [ChestCommands]Empecher les joueurs de retirer s'ils n'ont pas assez sur leurs comptes

gameZcraft

Représentant MC-Market.eu !
19 Novembre 2014
142
2
75
40
FRANCE
Bonjour,

J'ai récemment fait un système de banque pour mon serveur RP mais quand j'ouvre le menu,
ça ne m'affiche que cela :

Code:
spawncmd:
  COMMAND: 'console:clear {player} 5271 1;eco give {player} 100'
  NAME: '&4Déposer'
  LORE:
    - 100$
  ID: 5271
  PRICE: 100
  REQUIRED-ITEM: '5271'
  POSITION-X: 5
  POSITION-Y: 2


Voici mon code :



Code:
######################
#+                  +#
#  MENU SETTINGS    #
#+                  +#
######################
 
menu-settings:
 
  # name - appears as the title - REQUIRED
  name: '&6Banque'
 
  # rows - the number of rows of the chest - REQUIRED
  rows: 2
 
  # command - OPTIONAL (you can remove this or set it to '')
  # Bind multiple commands using ; (command: 'menu; m; me')
  command: 'menu'
 
  # This command command will be execute when the menu is opened.
  # Supports all the icon command types.
  open-action: ''
 
  # open-with-item - OPTIONAL
  # The menu will open only right-clicking with orange wool [35:1]
  open-with-item:
    id: 5283
    left-click: false
    right-click: true
 
 
######################
#+                  +#
#      ITEMS        #
#+                  +#
######################
 
 
spawncmd:
  COMMAND: 'console:give {player} 5272 1;eco take {player} 5'
  NAME: '&4Retirer'
  LORE:
    - 5$
  ID: 5272
  PRICE: 5
  POSITION-X: 1
  POSITION-Y: 1
 
 
spawncmd:
  COMMAND: 'console:give {player} 5278 1;eco take {player} 10'
  NAME: '&4Retirer'
  LORE:
    - 10$
  ID: 5278
  PRICE: 10
  POSITION-X: 2
  POSITION-Y: 1
 
 
spawncmd:
  COMMAND: 'console:give {player} 5268 1;eco take {player} 20'
  NAME: '&4Retirer'
  LORE:
    - 20$
  ID: 5272
  PRICE: 20
  POSITION-X: 3
  POSITION-Y: 1
 
 
spawncmd:
  COMMAND: 'console:give {player} 5277 1;eco take {player} 50'
  NAME: '&4Retirer'
  LORE:
    - 50$
  ID: 5272
  PRICE: 50
  POSITION-X: 4
  POSITION-Y: 1
 
 
spawncmd:
  COMMAND: 'console:give {player} 5271 1;eco take {player} 100'
  NAME: '&4Retirer'
  LORE:
    - 5$
  ID: 5271
  PRICE: 100
  POSITION-X: 5
  POSITION-Y: 1
 
 
spawncmd:
  COMMAND: 'console:clear {player} 5272 1;eco give {player} 5'
  NAME: '&4Déposer'
  LORE:
    - 5$
  ID: 5272
  PRICE: 5
  REQUIRED-ITEM: '5272'
  POSITION-X: 1
  POSITION-Y: 2
 
 
spawncmd:
  COMMAND: 'console:clear {player} 5278 1;eco give {player} 10'
  NAME: '&4Déposer'
  LORE:
    - 10$
  ID: 5278
  PRICE: 5
  REQUIRED-ITEM: '5278'
  POSITION-X: 2
  POSITION-Y: 2
 
 
spawncmd:
  COMMAND: 'console:clear {player} 5268 1;eco give {player} 20'
  NAME: '&4Déposer'
  LORE:
    - 20$
  ID: 5268
  PRICE: 5
  REQUIRED-ITEM: '5268'
  POSITION-X: 3
  POSITION-Y: 2
 
 
spawncmd:
  COMMAND: 'console:clear {player} 5277 1;eco give {player} 50'
  NAME: '&4Déposer'
  LORE:
    - 50$
  ID: 5277
  REQUIRED-ITEM: '5277'
  PRICE: 50
  POSITION-X: 4
  POSITION-Y: 2
 
 
spawncmd:
  COMMAND: 'console:clear {player} 5271 1;eco give {player} 100'
  NAME: '&4Déposer'
  LORE:
    - 100$
  ID: 5271
  PRICE: 100
  REQUIRED-ITEM: '5271'
  POSITION-X: 5
  POSITION-Y: 2





Merci des vos réponses ;-) !

Cordialement,
 
J'ai résolu mon problème, mais il existe une sorte de condition ? => J'aimerai que si les joueurs n'ont plus de sous sur leurs comptes ils ne peuvent plus retirer des sous.