HELP| Adding a command in shopGui+

Status
This thread has been locked.
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

1AndOnlyGod

Feedback score
7
Posts
197
Reactions
13
Resources
0
So you’re just trying to make it when someone clicks on the item it will run a command? ( ex. Someone clicks on it and it will run them the command /home)
 

WeGang

Banned
Feedback score
1
Posts
13
Reactions
7
Resources
0
Yes. apart from it will do /genbucket give {name} {type of genbucker} ammount
 
Banned forever. Reason: Ban Evading (Thewetlemon)

Funtime

ⒻⓊⓃⓉⒾⓂⒺ
Supreme
Feedback score
5
Posts
4
Reactions
81
Resources
2
Try using this (provided by the author of the plugin): [DOUBLEPOST=1511005495][/DOUBLEPOST]
Code:
runAsBuyer: true
Will make the player run the command, however, if you want the console to run it, just remove that line.
 
Last edited:

Vip

Online Entrepreneur
Premium
Feedback score
60
Posts
2,235
Reactions
649
Resources
0
Code:
  genbuckets:
    name: "&r&lBucket shop (page %page%)"
    items:
      1:
        type: command
        item:
          material: LAVA_BUCKET
          quantity: 1
          damage: 0
          name: '&a&lGen Bucket &8&l(&7&oCobblestone&8&l)'
        commands:
          - "genbucket give %PLAYER% Cobblestone 1"
        buyPrice: 500
        slot: 3
      2:
        type: command
        item:
          material: LAVA_BUCKET
          quantity: 1
          damage: 0
          name: '&a&lGen Bucket &8&l(&7&oSand&8&l)'
        commands:
          - "genbucket give %PLAYER% Sand 1"
        buyPrice: 1500
        slot: 4
      3:
        type: command
        item:
          material: LAVA_BUCKET
          quantity: 1
          damage: 0
          name: '&a&lGen Bucket &8&l(&7&oObsdian&8&l)'
        commands:
          - "genbucket give %PLAYER% Obsidian 1"
        buyPrice: 1500
        slot: 5

Oh and it's spelt "Bucket" not "Bukkit" xD
 
Status
This thread has been locked.
Top