Skript / Cancel event if item less than X

Discussion in 'Spigot Plugin Help' started by CharliesNoob, Feb 9, 2020.

  1. hey, i do skript for muder mystery minigame, i have problem
    my idea: do mechanism like this (watch gif)


    so,i want do canceling event if count of gold ingots less then 1

    my code

    on rightclick on button:
    if number of all gold ingot in player's inventory is less than 1:
    cancel event

    but event not canceling

    can someone help me?
  2. there are no errors in console