Take click inventory priority

  • 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!


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

Not open for further replies.


Supporter ++
Jun 26, 2017
So I am using a plugin called CrazyEnchantments, and one of their features is how they enchant the items with their enchantments. They use a click event in game, so when you drag and drop an enchantment onto a tool, piece of armor, etc.. it has a chance to apply it to the item. This is fantastic and all however I would like to create some incompatibility, I wrote a small skript to try it out, however the plugin Crazy Enchants is still taking priority even though I have skript set on a Highest priority. This is a part of his source code, and I'm pretty sure the place where he says "hey when a player clicks on an item in their inv with this item enchant it" starts on like 68, however from what I could tell I'm not able to change the event priority of that or if you can even have one for inventory clicks? anyways, yes is their a way so I can make skript take priority first.?
Here is the code, when I make a piece of stone with the correct matching lore, it works as it should, however if I do a diamond pick, the CrazyEnchants plugin takes priority which I don't want
on inventory click:
    if name of cursor is "&b&lHellforged I":
        set {_check} to 1
        set {_times} to 1
        while {_check} is 1:
            if line {_times} of lore of clicked item is not set:
                set {_check} to 0
                message "%line {_times} of lore of clicked item%"
            if line {_times} of lore of clicked item is "&7Blast I":
                cancel event
                message "Sorry but those items do not work with each other"
            add 1 to {_times}
Not open for further replies.