[REQ] Miners never sleep!

Discussion in 'Archived: Plugin Requests' started by kalez, Jan 11, 2012.

  1. Offline

    kalez

    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.
     
  2. Offline

    kalez

    Anyone interested?
     
  3. Offline

    Darkman2412

    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). :D
     
    Snipes01 likes this.
  4. Offline

    kalez

    I love you.

    Edit: "Y U NO HAVE PERMISSION?!" Hahahaa, nice.

    Any updates?
     
  5. Offline

    Darkman2412

    The main functions are working, only the config is doing weird stuff :p

    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.
     
    Last edited by a moderator: May 23, 2016
  6. Offline

    kalez

    sweet! progress is progress!
     
  7. Offline

    Darkman2412

  8. Offline

    kalez

    Yay! Thanks so much
     
  9. Offline

    kalez

    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?
     
  10. Offline

    Darkman2412

  11. Offline

    kalez

    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!
     
  12. Offline

    Darkman2412

    I can't get my Java environment working :/. I'll try to fix my computer tomorrow and see what the problem is.

    Good night.
     
  13. Offline

    kalez

    Alright, np! Its no emergency :p
     
  14. Offline

    Darkman2412

    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 :p
    Update is coming today!

    Edit: kalez : Update 1.1 is out, you can download it from the bukkitdev page, or from linky.
     
  15. Offline

    kalez

    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 :p Thanks alot!
     
    Darkman2412 likes this.
  16. Offline

    Darkman2412

    What's the name/IP of the server? :p
     
  17. Offline

    kalez

    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 :p 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.
     

Share This Page