Jump to content

Cancel Inventory Click


King_Creeperz

Recommended Posts

I am limited on plugins (12) and I don't know how to cancel a inventory click for a compass for a mode I am making. Bedwars Practice

Plugins I have: Skript, SkQuery

 

My code

every 2 ticks:
    loop all players:
        if loop-player has compass:
            stop
        if loop-player is in "BedwarsPractice":
            give loop-player compass named "&a>> &e&lPractice Selector &a<<" with lore "&7Select a Bedwars Practice"
on inventory click:
    if event-item is compass:
        cancel event

on drop:
    if event-item is compass:
        cancel event

Link to comment
Share on other sites

12 hours ago, King_Creeperz said:

I am limited on plugins (12) and I don't know how to cancel a inventory click for a compass for a mode I am making. Bedwars Practice

Plugins I have: Skript, SkQuery

 

My code

every 2 ticks:
    loop all players:
        if loop-player has compass:
            stop
        if loop-player is in "BedwarsPractice":
            give loop-player compass named "&a>> &e&lPractice Selector &a<<" with lore "&7Select a Bedwars Practice"
on inventory click:
    if event-item is compass:
        cancel event

on drop:
    if event-item is compass:
        cancel event

I use event-slot instead of event-item and it works for me.

tumblr_lqahoaPLkC1ql1l0v.gif

Feel free to add me on discord if you:

dc3456c-e0ec58e8-c807-43e3-b986-5224b91a need help with plugins

dc3456c-e0ec58e8-c807-43e3-b986-5224b91a need help with skripts

dc3456c-e0ec58e8-c807-43e3-b986-5224b91a need to vent about something

tumblr_lqahoaPLkC1ql1l0v.gif

>[ ‧₊˚꒰ʚ Starshine ɞ ‧✦ *#2683 ]<

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...