Ever been mining and everyone the surface wants to sleep, and if you log out there's a chance you might end up on the surface when you log back in. Or ever want to sleep but everyone else is mining? This should take care of that. - Any player below a configurable Y value is ignored when everyone above that Y value is in bed. - Have a configurable wait time in seconds before players below the Y value are ignored, incase they have a bed down there. -1 is no wait. - All command permissions are "isOp" only. (add additional permissions if you wish, but dont require them) - Release to the public if you wish. Commands: /mns y <value> (change the Y value) /mns wait <value> (change the wait value) /mns help (displays the commands) That is pretty much it.
Just coded this one Source code: https://github.com/darkman2412/MinersNeverSleep/ I'm going to compile it within a few minutes. Btw, Mocha is almost finished (except the commands), I'm going to test the current code this week (tomorrow probably).
The main functions are working, only the config is doing weird stuff Update: I got config working, but the wait time thingy doesn't work yet EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Hey sorry to be picky, but i just realized i forgot something. If youre in the nether it still counts you, so would it be possible to add a "ignore world list" in the config?
kalez Sorry, totally forgot it :/ Can you try http://dl.dropbox.com/u/33874811/Jenkins/MinersNeverSleep-0.0.1-SNAPSHOT.jar ? You need to remove the current config.yml though.
Seems to work great! Except the log is showing this while 2 people were in the nether, and probably above the set Y value, meaning it was probably trying to say they were both ignored and not ignored at the same time: Code: 2012-02-10 19:40:50 [INFO] CSeven is now sleeping ignored! 2012-02-10 19:41:40 [INFO] CSeven isn't sleeping ignored anymore! 2012-02-10 19:41:44 [INFO] MrsC7 is now sleeping ignored! 2012-02-10 19:42:04 [INFO] CSeven is now sleeping ignored! 2012-02-10 19:42:56 [INFO] CSeven isn't sleeping ignored anymore! 2012-02-10 19:43:03 [INFO] MrsC7 isn't sleeping ignored anymore! 2012-02-10 19:43:21 [INFO] CSeven is now sleeping ignored! 2012-02-10 19:43:23 [INFO] CSeven isn't sleeping ignored anymore! 2012-02-10 19:43:28 [INFO] MrsC7 is now sleeping ignored! 2012-02-10 19:43:28 [INFO] MrsC7 isn't sleeping ignored anymore! 2012-02-10 19:43:53 [INFO] CSeven is now sleeping ignored! 2012-02-10 19:43:57 [INFO] MrsC7 is now sleeping ignored! 2012-02-10 19:48:48 [INFO] CSeven isn't sleeping ignored anymore! 2012-02-10 19:48:50 [INFO] MrsC7 isn't sleeping ignored anymore! 2012-02-10 19:49:16 [INFO] MrsC7 is now sleeping ignored! 2012-02-10 19:49:22 [INFO] CSeven is now sleeping ignored! 2012-02-10 19:49:24 [INFO] CSeven isn't sleeping ignored anymore! 2012-02-10 19:49:25 [INFO] MrsC7 isn't sleeping ignored anymore! 2012-02-10 19:50:34 [INFO] CSeven is now sleeping ignored! 2012-02-10 19:50:36 [INFO] CSeven isn't sleeping ignored anymore! 2012-02-10 19:50:43 [INFO] MrsC7 is now sleeping ignored! 2012-02-10 19:50:58 [INFO] CSeven is now sleeping ignored! 2012-02-10 19:51:44 [INFO] CSeven isn't sleeping ignored anymore! 2012-02-10 19:51:51 [INFO] MrsC7 isn't sleeping ignored anymore! 2012-02-10 19:52:22 [INFO] CSeven is now sleeping ignored! 2012-02-10 19:52:31 [INFO] CSeven isn't sleeping ignored anymore!
I can't get my Java environment working :/. I'll try to fix my computer tomorrow and see what the problem is. Good night.
I just found out what the bug is, I made a typo in the code and I was using the wrong method to check whether the world was ignored or not Update is coming today! Edit: kalez : Update 1.1 is out, you can download it from the bukkitdev page, or from linky.
Awesome! I cant test it yet though because our server host is down for a bit due to some ip issues, but once its resolved, ill test it and let you know. I trust it will work fine though Thanks alot!
nvm, it was my dumb ass... didnt realize it was payment time :/ ill be testing it in a bit. Edit: well, no errors thus far, but no one else is online to test it with me Though testing on my own, i see it logs when im ignored or not in the normal world, but doesnt say so when entering the nether, so i cant say for sure if it works yet. ill let you know asap.