-
Notifications
You must be signed in to change notification settings - Fork 10
Command Management
- A name for the command: This is the name of the buyable command, it is used to identify it when setting its price, buying it, creating a sign for it etc.
- Command to be executed: This command is going to be executed from the console when a player pays for the command. You may use one of the different variables which will automatically be replaced. When the command gets executed.
Use this command format: /cshop add name command
Replace "name" with the name for the command you just thought of.
Replace "command" with the command to be executed, DON'T put a slash in front of the it.
Example: /cshop add superpowers effect {player} regeneration 100 10
After you created the command you have to set a price for it:
- The name of the command you want to set the price of: This must be the name of a buyable command tat has already been created.
-
The pay-type of the command: This can be money (player has to pay a specific amount of money for the command to be executed, this works with EconomyAPI only for the time being) or item (player has to pay a specific count of an item for the command to be executed)
- When using money: The amount of money
-
When using item: The item and amount, it must be written in one of the following formats:
- name:damge:count Example: With diamond:0:10 the price will be set to 10 diamonds.
- id:damge:count Example: With 1:0:64 the price will be set to 64 stone blocks.
Use this command format: /cshop setprice name money/item amount/item
Replace "name" with the name of the command you want to set a price to.
Replace "money/item" with the pay type you want.
Replace "amount/item" either with the amount of money the players have to pay (e.g. 100) or the item the players have to pay (e.g. diamond:0:10).
Example: /cshop setprice superpowers money 10
or /cshop setprice superpowers item 12:0:5
This wiki is © 2017 BoxOfDevs Team, under the Creative Commons Attribution 4.0 International License