Skip to content

Commit

Permalink
Added failfunctions example for slot
Browse files Browse the repository at this point in the history
  • Loading branch information
virustotalop committed Sep 7, 2018
1 parent e4ca1bd commit 0bfdadc
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion docs/slot/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,19 @@ More complex example of a slot.
lore: #Lore for the item
- "&cThere is dirt in this slot"
functions: #Functions to run on click
- "broadcast: &fThis is a simple test"
- "broadcast: &fThis is a simple test"
Example using the pay function with a fail function

.. code-block:: yaml
'0': #Index to be placed at, starting at 0
amount: 2 #2 of the item, default is 1
icon: "DIRT" #Icon for the slot
name: "&cDirt but red" #Name supports color codes
lore: #Lore for the item
- "&cThere is dirt in this slot"
functions: #Functions to run on click
- "pay: 1000"
pay-failfunctions: #Didn't have 1000 to pay
- "pmsg: You do not have enough money"

0 comments on commit 0bfdadc

Please sign in to comment.