Anti Drop - Great for prison servers icon

Anti Drop - Great for prison servers -----

A plugin that prevents players from accidently dropping items




Changelog
  • Fixed players being able to nest shulker boxes by closing a shulker box while having another on their cursor with a completely full inventory
----------, Oct 16, 2024

Version 2.2.2

Changelog

  • Fixed triggering anti-drop events while the player is dead causing them to get the item back they were meant to drop on death
----------, Feb 1, 2022

Version 2.2.1

Changelog

  • Fixed dupe bug from anti-drop death protection
Thanks to @doitcmf for the bug report!
----------, May 14, 2021

Version 2.2.0

WARNING:
May contain dupe bugs

Changelog

  • Fixed bug where anti dropped items dropped from top inventories (when bottom inventories were full) would cause the items to be lost forever
----------, May 10, 2021

Changelog
  • Fixed a bug where the plugin would attempt to drop AIR
Thanks to @DR_NIKOLAS for reporting this bug
----------, Aug 19, 2020

Changelog
  • Fixed a bug where the plugin would attempt to drop AIR
Thanks to @DR_NIKOLAS for reporting this bug
----------, Aug 19, 2020

Changelog
  • Fixed a bug where players could keep anti-drop items on death even when they weren't supposed to
  • Updated bStats Metrics class
  • Updated RorysLibrary dependency

The plugin is a lot larger because it now uses RorysLibrary, this wont slow down the plugin at all, don't worry.

Thanks to @SunsetMagic for the bug report
----------, Aug 11, 2020

Changelog
  • Added option to include applied-items in anti death drops
  • Added Metrics (Thanks to @BtoBastian)
Code (YAML):
# Should applied-items drop on death?
applied-items-death-drop
: true
Thanks to @CorruptedSoul for the suggestion
----------, Jul 17, 2018

Changelog
  • Fixed bug where console was spammed with an error when an anti drop item was dropped

Thanks to @maxlehot1234 for reporting the bug
----------, Feb 18, 2018

Changelog
  • Plugin is now re-coded and re-organized into 7 classes instead of it all being jammed into one
  • Fixed a bug where you could attempt to drop an anti drop item and then switch to another anti drop item and confirm the drop on that item instead even though you were prompted to confirm dropping the first item.
Thanks to @Themindshaper for reporting the bug, P.S sorry it took so long
----------, Feb 11, 2018

Changelog
  • Added custom anti-drop message and drop message options for specific-items
Code (YAML):
    # If set specific-items may have its own unqiue anti-drop-message
    anti-drop-message
: ' {PREFIX }Press Q again to drop your wool'
    # If set specific-items may have its own unqiue drop-message
    drop-message
: ' {PREFIX }Wool dropped successfully'
----------, Aug 1, 2016

Sorry for the spam, I've fixed it now

Changelog

  • Fixed bug where no matter what, (drop: false) items dropped
  • Fixed version
----------, Jul 26, 2016

Changelog
  • Fixed a bug where players with -antidrop.deathprotection still had death protection
----------, Jul 26, 2016

Changelog
  • Added the permission antidrop.deathprotection that is required by players for (drop: false) items to not drop (the permission is default true so there is no need to give it, just negate it from those you don't want to have the permission)
Thanks to @reeferx7 for the suggestion
----------, Jul 26, 2016

IMPORTANT: If you haven't read the update description below yet, make sure you do!

In this update I have slightly changed how specific-items are defined but it is very important and if you don't convert your current items to the new format the plugin will error.

Changelog
  • Added antidrop death protection for specific-items that have drop: false as an attribute
  • Added boolean value in config that sets if players can toggle antidrop death protection
  • Fixed bug where you could only have one specific item defined per material (due to key names being materials)
You'll have to add the follow sections to your config:

Code (YAML):
# If true then when a player has antidrop disabled their antidrop items (with drop: false) will still drop (and wont if enabled), if false antidrop items (with drop: false) will never drop
death-drop-inherits-antidrop
: true
Thanks to @Shaun246, for the antidrop death suggestion

To properly convert your specific-items, add a new variable named "item" and make the value the item material (the parent-key of the item) and then change the parent-key to something unique (all parent-keys must be different)

Still confused? Watch this GIF, or PM me
----------, Jul 3, 2016

  • Added Java 7 support
----------, Jul 2, 2016

IMPORTANT: If you haven't read the update description below yet, make sure you do!

Changelog

  • Fixed bug where /ad reload would cause an internal error
  • Fixed version value
  • Fixed bug where "disabled" would display as "disabled;"
----------, Jun 22, 2016

IMPORTANT: You must copy your config.yml values inside your "AntiPickDrop" folder to the new folder named "AntiDrop"

In this update I have completely recorded AntiDrop to improve its stability, performance and functionality.

Changelog
  • Changed the way that AntiDrop checks if the player drops a second time within the drop-delay to improve performance
  • Changed player storage to a custom .yml file instead of .txt file
  • Added specific-item support (More info below)
  • Added enabled-by-default option
  • Fixed a bug where AntiDrop's plugin name and folder was still AntiPickDrop
  • Added Java unicode support (ex \u00BB will become »)
  • Removed {RARROW} placeholder (replace with \u00BB)
You'll have to add the follow sections to your config:
Code (YAML):
# (true = Enabled on join if new | false = Disabled on join if new)
enabled-by-default
: true

# https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
# https://hub.spigotmc.org/javadocs/spigot/org/bukkit/enchantments/Enchantment.html
specific-items
:
  # None of these attributes (name, data, enchants or lore) are required, but atleast one must be set
  # If an item matches all the data below antidrop will be triggered
  WOOL
:
    # Data of item (The number after the colon of an item's id) (if there is no colon this can be removed or set to 0)
    data
: 14
    # Name of item
    name
: '&cIf an item has this name it will trigger &lantidrop'
    # Enchants must be defined as named on the Spigot JavaDocs (link above)
    # and the enchants must be defined as 'NAME:LEVEL'
    enchants
:
     - 'DIG_SPEED:3'
    # Lore of item
    lore
:
     - '&e&lline 1'
Thanks to @Shaun246 for the suggestion (specific-items)

If you have trouble configuring specific-items PM me. But please provide a pastebin of your config and I'll be happy to help.
----------, Jun 22, 2016

  • Fixed permissions that still began with antipickdrop
  • Added aliases apd and antipickdrop to antidrop in case owners still want it to only be used for pickaxes
Thanks to @Cuaris94 for reporting the permissions bug
----------, Jun 21, 2016

  • Just removed the "Pick" from the title commands and permissions to better fit the plugins functionality (as it supports multiple materials not just a diamond pickaxe)
----------, Jun 14, 2016

  • Added 1.9 support
  • Added 1.10 support
----------, Jun 14, 2016

Code (YAML):
# https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
applied-items
:
 - DIAMOND_PICKAXE
----------, Apr 6, 2016

Resource Information
Author:
----------
Total Downloads: 5,556
First Release: Apr 1, 2016
Last Update: Oct 16, 2024
Category: ---------------
All-Time Rating:
17 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings