Skript not working but no errors

Discussion in 'Spigot Help' started by summiner, Mar 21, 2020.

  1. Hello for the past 2 weeks i have been fighting with skript and I cannot get it to work yesterday i got it to finally work now it stopped and I'm getting no errors and I'm extremely confused here is my code:
    Code (Text):
    command /sell:
        executable by: players
        trigger:
            set {_wheatcost} to 1.00
            set {_sccost} to 5.00
            set {_caccost} to 8.00
            set {_pumpcost} to 10.00
            set {_meloncost} to 10.00
            set {_carrotcost} to 2.00
            set {_beetcost} to 2.00
            set {_potatocost} to 2.00
            set {_wheat} to number of wheat in player's inventory
            set {_sc} to number of sugar cane in player's inventory
            set {_cac} to number of cactus in player's inventory
            set {_pump} to number of pumpkin in player's inventory
            set {_melon} to number of melon slice in player's inventory
            set {_carrot} to number of carrot in player's inventory
            set {_beet} to number of beetroot in player's inventory
            set {_potato} to number of potato in player's inventory
            add {_wheatcost} * {_wheat} to {_value1}
            add {_sccost} * {_sc} to {_value2}
            add {_caccost} * {_cac} to {_value3}
            add {_pumpcost} * {_pump} to {_value4}
            add {_meloncost} * {_melon} to {_value5}
            add {_carrotcost} * {_carrot} to {_value6}
            add {_beetcost} * {_beet} to {_value7}
            add {_potatocost} * {_potato} to {_value8}
            remove all wheat from player's inventory
            remove all sugar cane from player's inventory
            remove all cactus from player's inventory
            remove all pumpkin from player's inventory
            remove all melon slice from player's inventory
            remove all carrot from player's inventory
            remove all beetroot from player's inventory
            remove all potato from player's inventory
            set {_value9} to {_value1} + {_value2} + {_value3} + {_value4}
            set {_value10} to {_value5} + {_value6} + {_value7} + {_value8}
            set {_totalvalue} to {_value9} + {_value10}
            set {_totalvalue} to {_totalvalue} * {multi.%player's uuid%}
            execute console command "/eco give %player% %{_totalvalue}%"