Solved Essentials command cost

Discussion in 'Spigot Plugin Help' started by Qurp, May 3, 2017.

  1. So I have essentials and I want to make it so when someone executes the command to receive a kit, it takes $10,000 from them. However, it seems to not be working, can someone help?
    Code (Text):
    command-costs:
    kit-Premium: 10000
      # /example costs $1000 PER USE
      #example: 1000
      # /kit tools costs $1500 PER USE
      #kit-tools: 1500
    kit-premium: 10000
     
  2. try fixing the spacing.

    Code (Text):

    command-costs:
      kit-Premium: 10000
      # /example costs $1000 PER USE
      #example: 1000
      # /kit tools costs $1500 PER USE
      #kit-tools: 150
      kit-premium: 10000
     
     
  3. ive tried that before and it hasnt seemed to work, thanks though!
     
  4. Can you post the kit's part of the config?
     
  5. Code (Text):
    kits:
      Starter:
        delay: 10
        items:
          - 306 1
          - 307 1
          - 308 1
          - 309 1
          - 276 1
          - 277 1 durability:3
          - 278 1 durability:3
          - 279 1 durability:3
          - 364 64
          - 364 64
          - 373:16421
          - 368 8
          - 333 1
          - 17 32
      Premium:
        delay: 7
        items:
          - 310 1
          - 311 1
          - 312 1
          - 313 1
          - 276 1 damage_all:3 durability:3 fire_aspect:1
          - 277 1 efficiency:5 durability:5
          - 278 1 efficiency:5 durability:5
          - 279 1 damage_all:2 efficiency:5 durability:5
          - 364 64
          - 364 64
          - 322 8
          - 373:16421 3
          - 368 16
          - 333 2
          - 49 64
     
  6. bumpity bump
     
  7. remove the # as they make it so they dont read it.
     
  8. what? The only #s are the ones that are on the examples. That way the examples won't be read
    Also what do you mean by "they"
     
  9. don't worry,i found out that essentials cost only does their commands not other commands for skripts/plugins
     
  10. but /kit is an essentials command
     
    • Informative Informative x 1
  11. Could you post all your plugins?
     
  12. upload_2017-6-2_7-21-4.png
     

    Attached Files:

  13. Just noticed this. Remove the duplicate kit-premium so there's only one.
     
  14. I've tried that before still doesn't work.