DropControl

This project is abandoned and its default file will likely not work with the most recent version of Minecraft. Whether this project is out of date or its author has marked it as abandoned, this project is no longer maintained.

This plugin allows you to specify what items players are allowed to drop on your server.

The permitted settings for each item are:

  • ALLOW - let players drop the item
  • BLOCK - don't let players drop the item
  • REMOVE - delete the item when players try to drop it

Base configuration format:

default-action: ALLOW
global:
  - item: DIAMOND_SWORD
    action: BLOCK
  - item: WOOL:YELLOW
    action: REMOVE
  - loreline: "&6Soulbound"
    action: REMOVE
  - item: DIAMOND
    exempt-permission: myserver.admin
    action: BLOCK
worlds:
  creative:
    - action: ALLOW
  world: &RefWorld
    - item: <ITEM>
      action: BLOCK
    - item: <ITEM>
      action: REMOVE
    - item: <ITEM>
      action: ALLOW
  world_nether: *RefWorld
  world_the_end: *RefWorld

Allowed formats for an ITEM:

  • any (The string "any". This is the same as omitting the entry.)
  • material (Such as COBBLESTONE)
  • material:datastring (Such as WOOL:RED) (Please see String Data Values for materials with recognized data strings.)
  • itemid (A number)
  • itemid:dataid (Such as 35:3)
  • material:dataid (Such as WOOL:3)

The formats in green are Preferred Formats.

Extended Matching

You can also provide additional rules for the items. The following are recognized additional rules:

  • loreline
    • Format: loreline: "Line of Lore" This will match the item if any line of the lore is the same as the provided string. Color codes are recognized with the &c format.
  • totalitem
    • This requires a fully serialized Bukkit ItemStack. All fields, including amount, lore, and enchantments, are matched.
totalitem:
  ==: ItemStack
  type: COBBLESTONE
  amount: 5
  meta:
    ==: ItemMeta
    meta-type: UNSPECIFIC
    display-name: "Cookies"
  • exempt-permission
    • Format: exempt-permission: myserver.admin If a player has the permission specified, the rule will NOT apply to them.
  • amount
    • Format: amount: "[operation][number]" where operation is a 1-character code out of: ! < > =. For example, "!1" will match all drops that aren't exactly 1 item.

Plans going forward

  • Command to reload config file
  • Commands to add new rules with optionally saving to config file
  • Configurable messages

Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files