Solved no drop 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!

Azule

New Member
Jul 25, 2020
8
0
0
22
I need a skript so my player's arent able to drag and drop anything from their inventory or even hit "Q" to drop it out of their inventory it needs to be with them AT all times the only people who are able to drop items would be operators. which a permission could be used for this such as nodrop.allow nodrop.deny idk haha.
 
You can use this:

Code:
on drop:
    if player has permission "nodrop.allow":
        stop
    else:
        cancel event
No one without permission "nodrop.allow" can throw their objects
 
Code:
on drop:
    cancel event
    send "&cYou can't drop items/blocks on this server!" to player

Here without permission but with custom message!
 
Code:
on drop:
    if player has permission "nodrop.bypass":
        stop
    else:
        cancel event
        send "&cYou can not drop items! If you think this is a problem contact an online staff member."

With bypass and msg