BedRecovery
BedRecovery
Latest version: 1.4.1
Toggleable(with easy to use commands) health, hunger, armor, weapon and tool regeneration after sleep. Now with visual effects!
When a player wakes up after a long night sleep in Minecraft, by default he gets his full health back only. What if you wanted more things recovered? Like durability for armors, tools and weapons. Or food level. Maybe any combination of those. Well, this plugin is for you
FEATURES
- You get to choose what regenerates when a player wakes up from a bed
- You can restore or choose not to restore health, food level, armor durability, weapons durability, tools durability
- You can specify each regeneration % to recover
- You can apply visual effects like confusion and blindness with configurable time(Because we all feel dizzy after waking up!)
- Settings are saved when server stops and are realoaded when server restarts
COMMANDS
- /br : See the settings applied right now by the plugin
- /br health : Toggle health recovery
- /br hunger : Toggle food level recovery
- /br armor : Toggle armor durability recovery
- /br weapon : Toggle weapon durability recovery
- /br tool : Toggle tool durability recovery
- /br blind : Toggle blindness visual effect
- /br confusion : Toggle confusion visual effect
SUMMARY You get to choose any combination of regeneration upon player wakeup from those:
Health Food level Armor durability Weapon durability Tool durability
And you can apply any or both of these visual effects upon wakeup:
Confusion Blindness
INSTALLATION
- Download the zip file
- Unzip the contents with your favorite archive program to your plugins folder
- Note that by default, only health regeneration is enabled, edit the config.yml to your liking as instructed on the config page.
@Ruggie1of1
Hi!
I'm not working on the plugin anymore sorry. Hope it works with latest craftbukkit versions. If someone would like to continue working on the plugin, I could give the source code no problem...
Problems with this plugin/Ideas for your to do list:
1st: If the config file already exists it should be loaded and not overwritten!! The only time the config file should be written is a) it doesn't exit or b) a command is issued that changes its values Even setting the file to read only, the config file gets overwritten if the reload command is issued.
2nd: Permissions needs to be implemented so that only people with proper permissions can issue the configuration commands. As it is now, anyone can issue these commands.
3rd: Permissions groups need to be added for each of the effects. (Repair tool, armor, etc) This way a sleep/repair feature could be offered as a perk to subscribers or the like.
4th: The commands do not appear to let you change the percentages from within the game. This combined with the fact that the config file gets rewritten on a reload means that you have to stop the server just to change percentages. this is VERY bad!!
5th: The initial behavior of 'set' is alright, but a second mode of 'add' (or similar) should be added so that armor, weapons, etc are repaired by the set percent. instead of being repaired up-to that percent. This way things would still wear out if used a lot but if used rarely they would regenerate by the set percentage, each time you slept. So if tools were set to 25% then every time you slept your tools would repair by 25%. As it is now, tools,items,etc will only repair if below the set percentage.
I love the concept of this plugin but with the glitches it has now I cannot use it on my server. :-(
hello i need CB-1.3.1 support version best regards
@Smileyconker
Try making your changes and then set the file to read-only before you start the server again.
HI, i was just wondering, can you make it to where there is custom config? Like i can set it recover 25% of wood tools/ leather armor. Then like i can set iron armor, and tools to recover 50%.. Gold to like 75%, And diamond tools and armor, to recover 100%? I am working on a custom server, and would like to do donations, and you can only get diamond gear by donating, so make it to where they get the best upgrade, kinda thing. Just something that i can, level it out to, the better tools/armor. The better upgrade, or something to this nature. Instead of all armor or tools get it. That would be epic! I like this plugin cause its kind of a run to your bed before your tools/armor breaks, otherwise you loose it. But would like it to be custom to each armor/tool level. Otherwise great work! Any thoughts? Thanks
Where are permissions on these commands? Currently, All user can these commands. Help me... ㅜ_ㅜ
Can you make a localizations?
@amendoal
in the config.yml file
how do i change the % of the weapon to 100%
@peull
I'm using 1.4.1 of BR. and I'm using the most recent bukkit 1.2.5 and same for mc. I love the plugin though...keep up the great work!
There is no error in my server it actually works very well. Only problem is i cannot edit the config. It refreshes the config every time. So if i turn on hunger it will it turn it back off on a refresh. It will work if i use in game commands but i cannot set the values (at least i dont know the command to do so)
Thank you!
It could also be me screwing up D:
Oh and i am using 1.4
As I am re-coding the plugin for the next release, I think I have found a bug in my code. I uploaded a 1.4.1 for bugfixes should fix the problems....
I think in the next 2-3 days the next update will be up, please be patient! thanks
as of now, the action SET is working, I just need to add the action ADD
please leave, in the config, action to SET
@Smileyconker
See answer below
@Mawkleonite
Can you please tell me which version of the plugin you are using, which version of CraftBukkit and which version of minecraft?
Actually, I'm working on the next update, if I know more about the problem I could see what is the problem and fix it...
Also post your log if there's any error there, could help me find the problem.
thanks
@Mawkleonite
I am having same problem.
So I installed the plugin the other day and the only config that holds is the health. Everytime I have to reload the server to get things to take effect all the other effects (mainly hunger) reset and won't let me qualify it as 10. Is there a fix for this?
Any help would be awesome!
Mawk
@GhostCraftServer
This plugin does not enable to sleep during the day.
As for sleeping individually, I don't think so. On my server I can sleep even if the other players are not sleeping too, but I think it's beacuase of another plugin I have on my server... Not mine! You will have to coordinate with the other players to sleep everyone at the same time... Sounds fun huh?
Will this plugin let players sleep when ever they want (day or night) and sleep individually, not having to have the whole server sleep in order to regen, repair, etc?
New version out! 1.4 see this page for more info.... I testted it a lot no problem on my end. Let me know if there's something I didn't see...
Thanks heaps for the update. Works well.