Bedhealth
Bedhealth
My first plugin, when a player leave the bed become full health. Criticism is welcome.
Next update in: about 2 weeks
What is Bedhealth
Bedhealth is a plugin to heal as a player in bed.
Easily, compact and Immediate.
Features
- Automatically HP Regenaration in your Bed.
- Permissions
- Immediate use
- Simple Config
- Compact
- easily usable (Go to bed and finished.)
- Color Codes(example: $0 MESSAGE = Black Message)
- Set waittime for a heal
- Vault integration(Default in Config: false)
Example
Player: Oh No! I have very little life, but there are many players on the server.
Admin: Go to your Bed and sleep 5 second and you have full health.
Player: Thank you, that is the solution!
Installation
- Bedhealth.jar in the plugin folder do
- Start your Server
- (OPTIONAL) Configure the Config
- Done
NOTE
- You have a server and use Bedhealth ? Write me a PM with the IP and infos, and your server become earlier new Bedhealth versions.
- New Version Policy from version 1.6.3 up: Version Policy
This Server used Bedhealth
- Send me your Server by PN
To-Do
- Write the plugin new
- Update code with new API features
- Display the sleep timer
- Send me To-Do´s
Statistic MCStats
You found Bugs ?
Write it in a Ticket/Comments.
[SEVERE] [Bedhealth] #01 ERROR: Can't connect to Bedhealth Version-Server. Check http://dev.bukkit.org/server-mods/bedhealth/ for more infos
And, cand pass me the beta version to try? :D
UPDATE: Release from v2.0.0 in about 1 week. 2.0.0 has bugfixes and performance upgrades. If you want a ALPHA version from v2.0.0 to help me, contact me at Twitter or a curse network ;)
UPDATE 19:40: A new Filesystem is coming ;) I start work at 14h. I hope I'm not to tired for that :)
Update: Next update come in about 2-3 weeks
It's time to work ! Recode the plugin at this Weekend :)
PS: Checkout www.youtube.com/MinebustersRussia/ for reviews of bukkit plugins(if you can russia)
UPDATE: My Harddrive is broken and i can't restore the code of my plugins, I hope a decompiler help me, to rescue the code.
But thanks for yours help, 5,5k downloads WOW :)
@Q2Lummox
Yes ;) I find a way to fix the bugs. The next update comes this weekend or monday.
shadowlif
Any news about the bugs?, Any intention of correcting them?.
Greetings ;)
@Q2Lummox
/togglebedhealth was a wish :)
Error 1&2: Yes, I'm looking for a long time for bug fixes. But I think I now have a good idea
For which serves the "/ togglebedhealth"?
Anything new about these errors:
- You go in and out of bed 5 times (the number is an example), in intervals of 15 seconds (another example) and when you go out of the bed last time you regenerate health 5 times every 15 seconds. It is as if accumulate the amount of times you go to bed.
- If you set the time to 2 minutes to regenerate (an example), you get into the bed, wait two seconds and out of bed .... you keep doing your stuff and two minutes you heal automatically (no need to wait two minutes in bed)....
Greetings ;)
@Q2Lummox
Sorry, i forgot that :( But i finished that to Monday.
EDIT Okay, the plugin "PlayerSimulator" is.... old. That´s need time, today come a update with /togglebedhealth
Hello again, you've managed to find out anything?. I wonder if it is possible to place a NPC, so you do not eject out of bed at night, if there are no players.
And the bug that accumulates the times you've entered the bed ... has been able to solve?.
Greetings ;)
@shadowlif
Thanks for taking my considerations.
I'm looking forward to testing a new version, with these new additions and changes.
Greetings ;)
@Q2Lummox
Thanks for your answer.
The Plugin is "All Rights Reserved" als I can´t(okay, I can do it but there is not) see the code but I test a Libary for NPC`s.
shadowlif
For point 2, I have a solution, you can add to your plugin.
If you create a player "Fake" with this plugin:
http://dev.bukkit.org/server-mods/playersimulator/
Add a NPC player "Fake", simply is there, does not do anything, just deceives the server making him believe that there is always a player online, and then let use the beds indefinitely.
The downside is that this plugin is abandoned and no longer works with the new versions of Bukkit. If you could implement in your plugin to create a NPC player to fool the server, it would be perfect.
Something like "/ bh fake Test", spawn an NPC, and that the server can interpret it as a player. You can see the plugin code I put above to guide you (not copy because the license does not allow it) to do something similar.
A greeting.
@Q2Lummox
Thanks for your Bugreport. I fixed it with version 1.6 (this weekend).
Too your questions:
1 and 2) I think it´s Clientside but I test Code for that :)
shadowlif
@shadowlif
Now it works perfect.
Two questions:
1) You can make the player may come into the beds during the day (to regenerate health during the day)
2) I set the time to heal after two minutes. When I go into a bed, if no other players online, I strip the bed a few seconds .... I do not have time to heal. Is there any way to stay in bed indefinitely (until you press the button "out of bed"), and besides that, cancel the event to change from night to day?
And a "bug" I've found, for example, I set the "plugin" to regenerate the health when pass two minutes lying.
If the player goes into the bed, wait two or three seconds and gets out of bed .... can go to any part, that within two minutes, their health will be regenerated completely (no a lying position, can be many kilometers away from the bed), only to get into bed and get away, within two minutes, healed.
I add:
If during those two minutes, you sleep more times, then you regenerate health many times as you're lying down. For example, I lie in bed and get up at once, within 10 seconds I go to bed and I get up again ....
So ten times ....
Well, when I get up, after two minutes my health regenerates when passing "10" seconds, I again regenerate life, so up to 10 times.
@Q2Lummox
The value is over 4000, yes ?
EDIT -.- I hate bugs... Update 1.5.1 is uploaded and wait on Approval
When I change the value:
time_for_heal_in_Bed_milliseconds: 4000
I set it to any other value, and no longer cure the beds.
@shadowlif
sorry actually the plugin works fine right now I just had permission issues :) very nice plugin!
@funbi11112
School ? I do not have time during the week...