Paste #28432: Diff note for paste #28431

Date: 2016/01/14 12:48:02 UTC-08:00
Type: Diff Report

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16


 XPPots:
     type: command
     name: Convertxp
     description: Turn all your EXP Bottles into XP!
     permission: denizen.xppots
     usage: /convertxp
     script:
-      - if <player.inventory.list_contents.contains[i@experience_bottle]> true {
+      - if <player.inventory.list_contents.contains[i@experience_bottle]> {
        - define amount <player.inventory.slot[<player.inventory.list_contents.find[i@experience_bottle]>].quantity>
        - take experience_bottle qty:<def[amount]>
        - give xp qty:<def[amount].mul[5]>
       }