Custom Drops
Custom Drops
Returns broken glass and glowstone
NOTE! New name, same plugin with more features!
Custom Drops was my first plugin that i made. It is just a basic plugin that allows users to retrieve glass, or glowstone they have broken after accidentally breaking it or placing it in the wrong spot.
Downloads (Latest):
- BukkitDev: On right (Prefered)
- DropBox: Download
Source:
- Github: Custom Drops
Features:
- Allow glass and thin glass (panes) to be dropped
- Commands to enable and disable the drops
- Permissions support
- Config File
- Supports Grief Prevention and Factions
Commands:
- /drop - Drops the item
- /destroy - Destroys the item
Permissions:
- customdrop.toggle.* - Allows toggle of all blocks
- customdrops.toggle.glass - Toggable glass only
- customdrops.toggle.glasspane - Toggable glasspanes only
- customdrops.toggle.glowstone - Toggable glowstone only
- customdrops.* - Permissions to everything
- customdrops.help - Access to help menu
By default, OP's have access to everything
Default Config
Worlds: - world - world_nether - world_the_end Glass-Damage: Damage-Chance: 0 Damage-Amount: 0 Glass-Drops: Drop-Chance: 100 Glowstone-Drops: Drop-Chance: 100 Blocks-Dropped: Glass: true Glass-Panes: true GlowstoneDust: 5 Debugging: Debug: false Hooks: GriefPrevention: true
To-Do:
Add permissions- DONE!
Add a config file - Not sure what for though... Let me know :)- DONE!
- Add reload command - Working on
- Fix bugs - Always being worked on
- Add custom messages for glass drops and config reload - Working on
- Add custom colours for messages - Working on
Allow unlimited worlds to drop glass (Not limited to 5)- DONE!
Add Glowstone- Fixed/DONE!
- Bug fixes - Always being worked on
Add debug option- DONE!
- Add custom Priority option(s).
Changelog:
2.0.5
Fixed Glowstone issues, Config options;
0 = Random Dust (Vanilla)
1-4 = Constant drops of that amount of dust
5 = Drops of Glowstone blocks
Fixed issue #3 by adding option to config
- 2.0:
Added unlimited world support
Changed commands and permissions - More control over what can be dropped
Changed config - Old one will HAVE to be deleted upon update from 1.7.2-1.8
Added a help page
Added Grief Prevention Support
- 1.7.2 - Reversed toggles, glass is now dropped by default on server reload/start
- 1.7.1 - Changed priorities for plugin, fixes issues with Factions.
- 1.6.5 - Fixed "[SEVERE] Wrong method arguments used for event type registered" error in log
- 1.6 - Fixed a bug in regards to drop chance
- 1.5 - Added config and changed some code to make it more stable, removed possibilty of drops being possible in creative
Special thanks to dadaemon
- 1.0 - Updated for RB 1.1-R4
- 0.5 - Added permissions
- 0.4 - Added thin glass (panes)
- 0.3 - Added commands
- 0.2 - Added stability
- 0.1 - Initial Version
@CRAZYxMUNK3Y
When i said config is not needed i meant YOU don't need mine. I solved the problem. Worlds reverted when i modified the config while server was running then reloaded the plugin.
Why would they toggle it? Give me a reason lol :P
@deleted_7536780
The players that are on the server i am on are always toggling it on and off.
Config is needed as other users(Ealier) have requested it
I am working on a way to change settings in game with commands
When does it do that? I just tried it with reloads and start/stops and it worked fine?
@CRAZYxMUNK3Y
Another plugin? i don't think so, this plugin has already been made before.. they simple had a permission node to allow that user/group to get drops instead of a toggle command.
Think about it. Why would you want to toggle it? surely you would always want it to drop that's the point in the plugin lolz.
Config not needed because it turns out that you cannot edit it while the plugin is in use.. annoying. so the world names reverted which is why it did not work.
@deleted_7536780
What other plugins do you use? and what version of Bukkit are you using?
Also, what are your config settings?
It's possible, but i will have to make another plugin...
@Phoenix23GF
I am trying to look into a way to keep it during reloads/restarts.
The /gd command allows that person only to drop the glass, while others will still get it borken unless they also have used /gd.
EDIT: From what i can find, it is not possible to save players and load them back up for reloads/restarts.
@CRAZYxMUNK3Y
So, this is a bit weird. I didn't bother to test this aspect out since you have a config file, but I got it working. Turns out, even if you have glass drops set to true in the config file, it won't drop unless someone on the server issues the /gd command. This doesn't save between server stops and starts and needs to be reissued every time. At least I got the glass to drop though :)
EDIT: Every time I test this plugin I do it without any other installed to make sure it's not a conflict error, which I don't believe it is.
@ace1177
Thanks for letting me know, will look into it, and also make a ticket to remind myself.
http://dev.bukkit.org/server-mods/glassdrops1-1-r3/tickets/
EDIT: Updated it, could you please test it and let me know how it goes?@Phoenix23GF
What plugins do you have (When all are installed)?
Thanks
This breaks with factions and allows people to break glass in protected land.
@CRAZYxMUNK3Y
So I tried the new version, and it fixed the error on the server side, but still doesn't produce glass. I then thought it might have something to do with a world issue, so I changed my world name to 'world' and deleted my config file so it could make a new one. Still nothing. I'm really sorry I'm getting a crazy bug like this one.
@Phoenix23GF
I just used the same config as you have just given me;
I too recieve the "Wrong Method" error in the console (Working on it), but everything in plugin works fine?
Not too sure what the problem could be sorry.
EDIT: Just added a new version that fixes the "Wrong Method" error, see if that fixes your issues?
I grabbed the beta build 1.2.3-R0.2 Since it was the latest beta build.
Here's the part of my config file
I changed the damage chance to 0 after I noticed I was getting hit so the plugin was working there.
@Phoenix23GF
What version of CB are you using? I tried it on 1.2.3-R0.1 and it worked fine. Will look into it though.
ADD: What do you have your
set as?
Love the addon, and I've been using it since about the beginning, but I'm getting a funny error with the latest version. It says:
in my server log. I ran it without any other plugins to make sure it wasn't a compatibility issue. The error causes the player not to get any glass back, but still occasionally take damage from the glass (I thought that was interesting) Any thoughts?
@lorenzo_p
Config has been added, it has options above that should suite all your needs (ex the no damage with certain item), as this is a build for 1.2.3-R0.1, please report any bugs.
Thanks
@Lecrayen
can't remember what plugin it was, but I had one once that had a random chance to give you damage every few blocks when breaking glass with your hands. broken glass hurts your hands! use a tool and it doesn't damage you. awesome idea to have in game.
also, in creative worlds, it drops glass items but it shouldn't. it would be nice to fix that, or at least give a permission node to disable glassdrop in some worlds.
@Lecrayen
Good idea! Will work on a config that allows that (may take a while as still learning :P ) but i will start on it soon.
maybe you have a 5% chance of getting hurt a half a heart when you break it? =P
@DarkFusioN007
Just for the player who used the command :)