This is just a plugin that I threw together when I saw a post asking for a way to stop drops for certain blocks when mined in a particular world. It can also be used to prevent broken chests from dropping items in a particular world. If you want other features or customization let me know in the discussion. Please post any bug reports in the discussion as well since I have only tested for functionality but not compatibility, i.e with other plugins. It does work with Multiverse.
Usage is simple. Place the plugin in the plugins folder then restart the server. Then edit the config to your liking and make sure that you change enabled to true, and then do /stopminingdrops reload or restart the server again.
Commands:
/stopminingdrops reload
Reloads the config.
/stopminingdrops version
Shows the version.
Permission:
stopminingdrops.command
Required for both commands or be an op.
Config:
Code (YAML):
#Hi! Thanks for using Weaves' plugin.
#Blocks drops and xp from mined blocks in a list of worlds.
#Should work with any block in the Material Enum found here:
#https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
enabled
: false
blocks
:
- iron_ore
- gold_ore
- diamond_ore
- emerald_ore
- coal_ore
- lapis_ore
- redstone_ore
- nether_quartz_ore
worlds
:
- world
- world_nether
- world_end
#Block the contents of a container from dropping when broken by a player, in a list of worlds.
block-container-drops:
enabled
: false
worlds
:
- creative
enable-metrics
: true