Jump to content

Command shop

Closed 1.0.26

dragonarab
  • in Shop
On 1/17/2022 at 8:29 PM, dragonarab said:

i have plugin called recycler extend 

the command are /recycler.craft

how to add this to the shop so players can buy the item ?

 

Thanks

On 1/21/2022 at 11:16 PM, MercedesCLA45AMG said:

yes good question i could use that as well

https://pastebin.com/bcCkzBEL

For Extended Recycler:

        {
          "Type": "Command",
          "ID": 4354345,
          "Image": "https://i.imgur.com/GuJUyLH.png",
          "Title": "VIP",
          "Command (%steamid%)": "recycler.give %steamid%",
          "Plugin": {
            "Hook": "Withdraw",
            "Plugin Name": "Economics",
            "Amount": 0
          },
          "DisplayName (empty - default)": "",
          "ShortName": "",
          "Skin": 0,
          "Amount": 1,
          "Price": 100.0,
          "Sell Price": 0.0,
          "Discount (%)": {
            "shop.default": 0,
            "shop.vip": 10
          }
        },

 

Share this comment


Link to comment

this wont work as the config is incorrectly written it has to be in the same format as the other items as i spent ages trying to figure this issue out when it didnt work.

 

Share this comment


Link to comment
On 1/23/2022 at 3:07 AM, MercedesCLA45AMG said:

this wont work as the config is incorrectly written it has to be in the same format as the other items as i spent ages trying to figure this issue out when it didnt work.

 

What specifically are you having problems with? O.o

Share this comment


Link to comment

the config is wrong you have to use this config setup for it to work "Type": "Item",
          "ID": -2132976536,
          "Image": "",
          "Title": "",
          "Description": null,
          "Command (%steamid%)": "",
          "Plugin": {
            "Hook": "",
            "Plugin Name": "",
            "Amount": 1
          },
          "DisplayName (empty - default)": "HQM",
          "ShortName": "metal.refined",
          "Skin": 0,
          "Amount": 1,
          "Price": 0.0,
          "Sell Price": 0.2,
          "Buy Cooldown (0 - disable)": 0.0,
          "Sell Cooldown (0 - disable)": 0.0,
          "Discount (%)": {
            "shop.default": 0,
            "shop.vip": 10
          },
          "Sell Limits (0 - no limit)": {
            "shop.default": 0,
            "shop.vip": 0
          },
          "Buy Limits (0 - no limit)": {
            "shop.default": 0,
            "shop.vip": 0
          },
          "Max Buy Amount (0 - disable)": 0,
          "Max Sell Amount (0 - disable)": 0

Share this comment


Link to comment
12 hours ago, MercedesCLA45AMG said:

the config is wrong you have to use this config setup for it to work "Type": "Item",
          "ID": -2132976536,
          "Image": "",
          "Title": "",
          "Description": null,
          "Command (%steamid%)": "",
          "Plugin": {
            "Hook": "",
            "Plugin Name": "",
            "Amount": 1
          },
          "DisplayName (empty - default)": "HQM",
          "ShortName": "metal.refined",
          "Skin": 0,
          "Amount": 1,
          "Price": 0.0,
          "Sell Price": 0.2,
          "Buy Cooldown (0 - disable)": 0.0,
          "Sell Cooldown (0 - disable)": 0.0,
          "Discount (%)": {
            "shop.default": 0,
            "shop.vip": 10
          },
          "Sell Limits (0 - no limit)": {
            "shop.default": 0,
            "shop.vip": 0
          },
          "Buy Limits (0 - no limit)": {
            "shop.default": 0,
            "shop.vip": 0
          },
          "Max Buy Amount (0 - disable)": 0,
          "Max Sell Amount (0 - disable)": 0

A person uses a plugin that gives out a custom item. And for this he needed to give the command 🙂 

Share this comment


Link to comment

no you dont follow its written wrong and dosnt work it needs to be like this  

      "Enabled": true,
      "Title": "Items",
      "Permission": "",
      "Items": [
         {
          "Type": "Command",
          "ID": 4354345,
          "Image": "https://i.imgur.com/GuJUyLH.png",
          "Title": "",
          "Command (%steamid%)": "recycler.give %steamid%",
          "Plugin": {
            "Hook": "Withdraw",
            "Plugin Name": "Economics",
            "Amount": 0
          },
          "DisplayName (empty - default)": "",
          "ShortName": "Recycler",
          "Skin": 0,
          "Amount": 1,
          "Price": 1000.0,
          "Sell Price": 0.0,
          "Buy Cooldown (0 - disable)": 0.0,
          "Sell Cooldown (0 - disable)": 0.0,
          "Discount (%)": {
            "shop.default": 0,
            "shop.vip": 10
          },
          "Sell Limits (0 - no limit)": {
            "shop.default": 0,
            "shop.vip": 0
          },
          "Buy Limits (0 - no limit)": {
            "shop.default": 0,
            "shop.vip": 0
          },
          "Max Buy Amount (0 - disable)": 0,
          "Max Sell Amount (0 - disable)": 0

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.5k

Customers

Total customers served.

78.6k

Files Sold

Total number of files sold.

1.5m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.