Hello, I Have A Idea For A Plugin Name : No Sleep Purpose : So When Someone Right Clicks On A Bed They Can Not Sleep Notes: It Should Say When Someone Right Clicks On A Bed "You Can Not Sleep" Permissions : nosleep.cansleep Super Perms? Thank You For Taking The Time To Read This Thread I'll Be Very Happy If Someone Would Make This
I think that I could possibly do this. This would be my first actual plugin, so hopefully it works out.
oh :/ uh... I guess I will keep working just in case. I mean, hell, this should only take like 20 minutes...
Well I can't seem to get mine working, wanna work together over skype? Well I gtg for the night it'll be done tomorrow. Ok download link is <Edit by Moderator: Redacted mediafire url> I haven't gotten permissions added yet and no messages pop up this is just a basic version were no one can place beds. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
@iidunno , wow...tomjw64 already take this over and you take it over too?i dont know how to say it but dude, but your mean...next time, dont just act right away, you make the other coders/developers feel bad cause they are trying hard to make plugins too...you just dont take it away from them
Here is my copy. If it is working like it should, then it should have everything you wanted. It cancels an EnterBed event and gives them a warning unless they have the NoSleep.sleep permission. Tell me how it works if you can! <Edit by Moderator: Redacted mediafire url> Note: I haven't been able to test it completely because I don't have a powerful computer at the moment that can handle both a client and server (I will tomorrow). This means it may not work or have a bug or two. I did however run a temp bukkit server on my current computer and I got no error messages.
I'm only providing the basics if tom wants I'll post the source and he can build on top of it. And if you want I'll show you a link of this happening to me. Also your a better coder then me, I don't know how to add permissions yet. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Well, I just started making bukkit plugins today, so thanks! That means a lot! If you could test my version out I would appreciate it though, because I still don't know if it works! And @DomovoiButler, I'm sure he meant no harm Ok, so I tested this on my minecraft server. From what the players said, it blocks players from sleeping like it should, however, I seem to have messed up the permissions somehow, as OPs can't even sleep xD I will fix this in at least the next couple days. Maybe I will make a bukkitdev for this too EDIT by Moderator: merged posts, please use the edit button instead of double posting.
real simple fix, all you need to do is in your plugin.yml file add the following Code:java permissions: NoSleep.sleep: description: whatever you want it to be
I'm going to learn a little more about permissions really quick and release a working version tomorrow! oh really! thanks! should this go in a specific spot or does it not matter? EDIT by Moderator: merged posts, please use the edit button instead of double posting.
ok guys! I finally got it working thanks to moose517's fix! Thanks moose517! Everything works perfectly in this version, even permissions! Glad I could be of service and that my first plugin was a success! <Edit by Moderator: Redacted mediafire url>
Horay I like this line "NoSleep was made from a plugin request by 544nick101, so credits to him for the idea."