Any bed
A Server mod made for users to have almost anything as beds You can also use solid blocks, commands and permissions. you will be able to lay down on any solid block just not water or lava or the mid air. I have made this plugin in honor of the chairs plugin. due to it not updating I was gonna update it but i went inactive. and the plugin was updated (continued) so i decided to code my own plugin.
Features The plugin allows you to lay in a position like the bed. You are allowed to switch to any solid block.
Commands /Laydown Laydown on the solid block you are on.
Permissions
mybed.Laydown permission to allow any user/operator to lay down.
Donation
There is currently no donation yet.
Developing
If you want to help Develop this plugin, PM me or post in the comments your Skype name and how you would qualify.
Possible Errors I have soon realized that every plugin has very bad errors. so keep in mind that this is a planning plugin and i'm still working on the download.
@Pocketkid2
Yeah I think you are right. It is possible to make a plugin like this. I found a plugin, which makes something really similar : http://dev.bukkit.org/bukkit-mods/corpses-mod
@chrisp50 As most people have found with making chair plugins, it is not very easy to create an entity under the block and set the entity's "passenger" to the player. That is the easy way, but it is not the best way. If you have ever used craft book or Chairs Reloaded, they use protocol Lib to "fake" the effect of sitting down, and teleport you into the block. Basically, the same thing is with beds. The best way to do that would be to send the sleeping packet, as shown in the code at the link below. I believe this is the best and only good way to make this plugin. If you didn't know before, sending packets is how MobDisgusie/DisguiseCraft work.
I do not think it is possible to make a plugin where you can lay down anywhere. I think you always need a bed under the player. Else it should not work
I found some code that might help you https://github.com/spoothie/Comfort/blob/master/src/net/spoothie/comfort/Comfort.java Go to the link and scroll down to the paragraph commented out (lines 119-138)