Solved Prevent player from arranging items in inventory

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

    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!

Status
Not open for further replies.

Sam1370

Member
Jun 11, 2017
17
1
0
Is there a better way to prevent the player from arranging the items in their inventory? Because I have this:
code_language.skript:
on inventory click:
    player is in "world":
        player is not op:
                cancel event
                message "&c&lHey! &r&7Sorry, but you can't arrange items here."
/\ That doesn't work. I don't know why. I tested it by deopping myself and it still doesn't work.

I have the latest skript version (bensku) and the addons Skellett, SkQuery-Lime, and TuSKe.

Help!
[doublepost=1497722159,1497721285][/doublepost]Nevermind, I figured it out.
code_language.skript:
on inventory click:
    player is in "world":
        player is op:
            stop
        cancel event
        message "&c&lHey! &r&7Sorry, but you can't arrange items here."
For some reason that works. Well, I'm not complaining :emoji_stuck_out_tongue:
 
Status
Not open for further replies.