[MECH/FIX] DropPlugin v2.1 - Break blocks, get modified drops (Permissions, LogBlock support) [935]

Discussion in 'Inactive/Unsupported Plugins' started by Juze, May 8, 2011.

  1. Offline

    Juze

    DropPlugin - Break blocks, get modified drops!
    Version: v2.1
    Tested with Permissions 2.7.4-3.1.5b and CraftBukkit #1000
    A collaboration with @ChrizC

    At long last, v2.x is here!

    This plugin changes some drops when some blocks are broken. For example, glass drops glass, wooden stairs drop wooden stairs, ice drops ice... Comes with configuration and Permissions support!

    If Permissions plugin is not found, the plugin uses OPs instead.

    Looking for more custom drops? Here:
    A fair note on updating to v2.x: A lot of things have changed, and it is highly recommended to delete your config file (just in case) and reconfigure your Permissions. After that, you shouldn't need to delete your config file anymore again after an update. :)


    Features:
    • Blocks have different drops
    • TNT explosions can be disabled
    • Permissions support (OP check if not found)
    • Configuration for customization
    • Commands to reload, enable and disable drops
    • LogBlock support
    • Easy to use
    Drops (open)

    These drops can be changed (optional with config and Permissions):
    • Glass - Drop glass!
    • Bookshelf - Drop a bookshelf!
    • Ice - Drop ice!
    • Stairs - Drop stairs!
    • Lightstone - Drop a lightstone block!
    • Mobspawner - Drop a mobspawner! (Note: Pigspawner. Need /mspawn or other command to change the spawn)
    • Grass - Drop grass!
    • Ores - Drop ores instead of ingots!
      • Redstone - Drop redstone ore
      • Diamond - Drop diamond ore
      • Lapis - Drop lapis ore
      • Coal - Drop coal ore
    • Ingots - Drop ingots instead of ores!
      • Gold - Drop gold ingot
      • Iron - Drop iron ingot
    • Stone - Drop stone!
    • Leaves - Drop leaves!
    • TNT - Instead of an explosion, drop TNT instantly like any other block!
    • Cake - Drop cake! (Infinite source of food)
    • Snow block - Drop a snow block!
    • Snow tile - Drop a snow tile!
    • Gravel - Drop flint (100% chance)!
    • Clay - Drop a clay block! (Note: If enabled, does NOT drop clay balls -> no bricks)
    • Logs - Drop 4x wood!
    • Doublesteps - Drop a doublestep instead of two steps!
    • Boat - Drop a boat!

    Download (Latest, wget friendly):
    DropPlugin.zip (.jar)
    Source Code

    Usage:
    Place the DropPlugin.jar in your server's /plugins/ directory, just like any other plugin. Restart your server.

    A configuration file will be generated in /plugins/DropPlugin/ folder. Open DropPlugin.properties with a text-editor of your choise (Notepad++ is great). Here you can disable and enable different drops.

    Finally, if using Permissions, configure your groups to have their appropriate node. For quick install, give 'DropPlugin.drop.*' for your default builder group.

    Issues & To-do:
    Please post any issues on GitHub. Current and previous issues can be found from there too.

    Config (open)

    Default configuration (config.yml) can be found here!
    Show Permissions

    Permission nodes:
    DropPlugin.drop.* - Gives access to all custom drops
    Drops (open)

    DropPlugin.drop.glass - Drop glass
    DropPlugin.drop.bookshelf - Drop bookshelves
    DropPlugin.drop.ice - Drop ice
    DropPlugin.drop.glowstone - Drop lightstone
    DropPlugin.drop.lightstonedust - Drop 9x lightstonedust (Removed in v1.2.1, Beta 1.6.6 has this.)
    DropPlugin.drop.stairs - Drop stairs
    DropPlugin.drop.mobspawner - Drop mobspawners
    DropPlugin.drop.grass - Drop grass
    DropPlugin.drop.ores - Drop diamond/redstone/lapis/coal ores instead of ingots
    DropPlugin.drop.leaves - Drop leaves
    DropPlugin.drop.stone - Drop smoothstone
    DropPlugin.drop.tnt - Drop TNT instead of exploding it! (Works as a nerf) Removed in v1.2.4, use DynaHate instead.
    DropPlugin.drop.cake - Drop cake
    DropPlugin.drop.clay - Drop a clayblock
    DropPlugin.drop.ingots - Drop iron/gold ingots instead of ores
    DropPlugin.drop.flint - Drop flint from gravel
    DropPlugin.drop.snow - Drop a snowblock/snowtile
    DropPlugin.drop.wood - Drop 4x wood from log
    DropPlugin.drop.doublesteps - Drop a doublestep instead of two steps
    DropPlugin.drop.boat - Drop a boat

    DropPlugin.admin.* - Gives access to all administrative commands
    Admin (open)

    DropPlugin.admin.enable - Allows to enable drop in specified world
    DropPlugin.admin.disable - Allows to disable drop in specified world
    DropPlugin.admin.reload - Allows to reload the config for world(s)
    Show commands

    /drops help - Shows the help menu
    /drops enable [name] [world] - Enable drop in specified world (DropPlugin.admin.enable)
    /drops disable [name] [world] - Disable drop in specified world (DropPlugin.admin.disable)
    /drops reload [world] - Reload configuration for specified world (DropPlugin.admin.reload)
    /drops version - Prints the version number

    Changelog:
    Version 2.1 (Download)
    • Added support for LogBlock, as blocks were not logged before this update.
    Version 2.0 (Download)
    • Added help and version commands
      • /drops help - Shows the help menu
      • /drops version - Prints the version number
    • Updates no longer break the config
    • Ice no longer generates water on break
    • Renamed a few config and permission nodes (Glowstone)
    • Added boats
    • Working multiworld configuration (Dev build users, this has been fixed!)
    • Major code cleanup
    • Something I've forgotten to list, this update was huge and took a lot of effort! Enjoy.
    Show changelog

    Version 1.2.4 (Download)
    • Removed TNT support (see DynaHate)
    • Added log to 4x wood as suggested by @ThreeDGuy .
    Version 1.2.3 (Download)
    • I would almost consider this as v1.3 update but rushed with the release of new drops, so it's called v1.2.3.
    • Added snow
    • Added clay
    • Added gravel to flint
    • Added ingots
    • Code cleanup
    Version 1.2.2 (Download)
    • Added cake, yummy.
    • ...that's all, this update is optional.
    Version 1.2.1 (Download)
    • Added redstone ores (Whoops, forgot in v1.2)
    • Removed lightstonedust support since Beta 1.6.6 has this implemented.
    • Fixed reduntant drop modify for gold/iron.
    Version 1.2 (Download)
    • Code cleanup
    • Changed config to .yml
    • Added optional support for leaves, ores, smoothstone, doublesteps and TNT for freebuild servers (also works as TNT-nerf)
    • Fixed GriefAlertR conflict issue.
    • Config bug fixed by @ChrizC , thanks again!
    • I never included this for public download, it's just here in changelog if you want to try it since I released the source for it!
    Version 1.1 (Download)
    • Changed Permissions from dropplugin.* to DropPlugin.*
    • OP check works again (thanks @t3hk0d3 !)
    • Added support for grass and mobspawners
    • Code cleanup
    Version 1.0 (Download)
    • Initial release
    Last words (open)
    This was my first experiment Java and I wanted to see if I could create a plugin. I ended up choosing something easy average but very useful.

    I am still a Java newbie and I would appreciate if you would go easy on me.

    Thanks to people who helped me with a few problems! #bukkitdev IRC

    A special thanks @ChrizC for teaming up together and doing major parts of the code!
     
    emoknight likes this.
  2. Offline

    Juze

    Sorry for the laziness and inactivity! I'm currently busy with other stuff in real life, school is starting soon and all that. I'm trying to. :)

    EDIT: I am sorry to tell that v2.2 or v2.3 may become the last version of this plugin. After that, I will likely stop giving support for this plugin, as I'm likely going to use OtherBlocks on my server instead. It's a more configurable and bugless solution. I will still patch all of the bugs mentioned, though! BigBrother support may not make it through, sadly. :(
     
  3. Offline

    Shooty

    I have an error :

    Code:
    17:58:11 [SEVERE] Could not pass event BLOCK_BREAK to DropPlugin
    java.lang.NullPointerException
    at me.juze.DropPlugin.DPBlockListener.onBlockBreak(DPBlockListener.java:
    108)
    at org.bukkit.plugin.java.JavaPluginLoader$37.execute(JavaPluginLoader.j
    ava:497)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:338)
    at net.minecraft.server.ItemInWorldManager.c(ItemInWorldManager.java:157
    )
    at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:121
    )
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:481)
    at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java
    :436)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422
     
  4. Offline

    Juze

    Which CB# are you using? Do you have multiple worlds running? Try disabling and enabling grass drops to see if that works for you (or just disable grass drops). Make sure your players also have a group in Permissions...
     
  5. Offline

    Shooty

    Grass is already disabled and yes i'v multiworld i'm on 1060 build :/
     
  6. Offline

    Juze

    Make sure the config exists for your world, if not, reload or enable/disable a drop ingame and see if that fixes it.

    Also, just an announcement, I really don't have time to get v2.2 done with my school work, server hosting and moderation to be done. Sorry everyone.
     
  7. Offline

    cvxx7q

    how do i disable dirt drops?
    or cobble stone?

    i actually want to disable all drops if possible, so far its working well, but if i might ask

    can i disable drops based on ID? or if u must use block names do you have a block name list?

    because i tried

    /drops disable dirt

    and this doesnt exist it says :S

    thanks ;)
     
  8. Offline

    Juze

    This plugin won't support it I'm afraid, and I have no intentions or plans to do that. Try some other plugin such as OtherBlocks to do that instead.
     
  9. Offline

    cvxx7q

    i think i did already (i will check again in a few minutes ;)) but i think the reason i "pushed" for this plugin was because it had the most uncluttered config, but i suppose i misread your plugins intentions :s thanks though ;)
     
  10. Offline

    wassilij

    Is working good with Craftbukkit 1221
     
  11. Offline

    wassilij

    wow its working with Craftbukkit 1240 and LogBlock 1.32 :eek:
     
    Juze and ChrizC like this.
  12. Offline

    Juze

    And should still work on #1317 with LogBlock! The code is quite simple, and I don't believe it to break in a long time. Unfortunatly, my support for this plugin has ended since #935, I haven't added PermissionsBukkit/SuperPerms support since.
     
  13. Offline

    sefiam

    If I dont want creepers on my server but I still want it to be possible to aquire gunpowder (without killing ghasts)
    Can I make gravel drop either gunpowder flint or gravel blocks???
     
  14. Offline

    Zarius

    I don't think this plugin will allow that - it's fairly simple in configuration (which is actually a good thing - some people prefer plug'n'play).

    OtherDrops will allow you to make gravel drop gunpowder though - ask me over there if you're interested.
     
    Juze likes this.
  15. Offline

    SupernovaDX

    Can you make it so that it will drop XP too. Like for more skills.
    Like if you wanted to not only reward fighting but also farming and mining etc.
     
  16. Offline

    Juze

    Possible, but I have no plans for this, doesn't fit the plugin at all.

    No updates for this either. See OtherDrops.
     

Share This Page