DropProtection icon

DropProtection -----

Have you ever accidentally dropped a valuable item? This script offers several measures to avoid it!



DropProtection allows your players to lock certain slots from dropping
Feedback and suggestions for this or a new script on the discussion page are welcome.

Features:
  • Lock and unlock any slot with /lockslot and /unlockslot
  • Slots 1 to 9 are used for user-friendliness
  • If no slot number is specified, the current slot is used
  • Every message is customizable in the options
  • An error message is displayed for each error
  • A sound is played when dropping is prevented
  • When dropping certain valuable items, the user has to press the button again to avoid loosing the item.
  • 30 items/blocks like netherite armor, beacon, spawner etc. are already configured
  • You can customize the confirmation title, subtitle and duration easily
  • When the time is up, the user has to confirm the drop again.
  • A seperately customizable sound is played.
  • Blocks dropping certain items like command block from creative if you are not on the bypass list.
  • As Console, you can add or remove players from the admin item whitelist
  • With /listdropbypass you can see who is on the bypass list
  • SOON Items like command blocks are removed from inventory if a non-whitelisted player changed the gamemode to survival
Commands:
  • /lockslot [<1-9>]
  • /unlockslot [<1-9>]
  • /adddropbypass <player> (executable by console)
  • /removedropbypass <player> (executable by console)
  • /listdropbypass (executable by console)

Permissions:
  • lockslot.use

Dependencies:

Installation/Setup:
  1. (If you don't have Skript installed) Download Skript from here
  2. (If you don't have Skript installed) Restart your server
  3. Download this script and place it in /plugins/skript/scripts
  4. Execute command /skript reload dropprotection.sk
  5. (Optional) Give the permission to a group of your choice and edit the messages and settings in the file

Options/Config:
Code (Text):

options:
    prefix: &8[&cDropProtection&8]
#   LOCKSLOT:
    lockMessage: &7Slot &e%arg-1% &7has been successfully locked.
    unlockMessage: &7Slot &e%arg-1% &7has been successfully unlocked.
    lockedAlreadyMessage: &7This slot is already locked! Use &e/unlockslot %arg-1% &7to unlock.
    notLockedMessage: &7This slot is not locked.
    invalidSlotMessage: &7Invalid slot! Please select a slot between 1 and 9.
    specifySlotMessage: &7Please specify a slot. Use: /lockslot <Slot Number (1-9)>
    dropLockedMessage: &7You have locked this slot.
    slotLockedTitle: &cSlot Locked
    slotLockedSubtitle: &7Use /unlockslot %{_slot}%
    permissionMessage: &7You need the &d&lELITE&8-&7rank to use this feature!
    sendTitle: true # Use true or false here
    sound: entity.villager.no # You can find all sounds here: https://minecraft.fandom.com/wiki/Category:Basalt_deltas_ambient_sounds
    guiName: &cLocked Slots
#   CONFIRMDROP
    confirmationTitle: &4Attention
    confirmationSubtitle: &7Press again to drop the item
    confirmationTime: 5 seconds
 


Screenshots:
  • Commands
javaw_8kcXJnIs52.png
  • Warnings
javaw_kSbErabk0q.png
javaw_VrYl8iQ4KL.png

If you like the script, please kindly consider leaving a 5-star rating.
Resource Information
Author:
----------
Total Downloads: 196
First Release: Feb 10, 2024
Last Update: Feb 16, 2024
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings