how to prevent spamming right click to bypass cancel event in skript

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

ROPIX_GOD

Member
Aug 13, 2024
3
0
1
24
i have this skript: on right click: if {unequip_active} is true: if player's held item is helmet or chestplate or leggings or boots or elytra or shield: cancel event send "&a&lMob&b&lWar &7>>> &cYou Are Not Allowed To Equip Your Armor During The Event!" to player else if player's held item is ender pearl: cancel event send "&a&lMob&b&lWar &7>>> &cYou Are Not Allowed To Use An Ender Pearl During The Event!" to player

but if i spam right click it it will eventally let them equip it i tried cooldown i tried flags i tried everything the and idk what to do
 
Hello!

I mean a version that has spacing.

A non-indented version is:

code_language.skript:
 on join: do this

An indented version is:

code_language.skript:
on join:
    do this
 
Hello!

I mean a version that has spacing.

A non-indented version is:

code_language.skript:
 on join: do this

An indented version is:

code_language.skript:
on join:
    do this
if {unequip_active} is true:
if player's held item is helmet or chestplate or leggings or boots or elytra or shield:
cancel event send "&a&lMob&b&lWar &7>>> &cYou Are Not Allowed To Equip Your Armor During The Event!" to player
else if player's held item is ender pearl: cancel event send "&a&lMob&b&lWar &7>>> &cYou Are Not Allowed To Use An Ender Pearl During The Event!" to player


this does work but if u spam right click it it will equip it eventually i tried flags cooldown everything nothing seem to prevent spamming right click