[MECH]BedHeal v1.1 - Heals sleeping players [1000,1060,1185,1337]

Discussion in 'Inactive/Unsupported Plugins' started by Kostronor, May 3, 2011.

  1. Offline

    Celtic Minstrel

    That has always been the case, I think. And yes, I think it needs to be changed.
     
  2. Offline

    Stephen304

    I thought that was only the case when you are using multiple worlds? I am using only 1 world.
     
  3. Offline

    Celtic Minstrel

    Pretty sure the number of worlds has no effect on that.
     
  4. Offline

    Stephen304

    Oh, cause on the first page he said he made it check if it's daytime when they leave the bed and if it's not then they don't get healed... It was still night and I got healed...
     
  5. Offline

    Celtic Minstrel

    Ah, I see, so maybe he did it wrong. I'll take a look in the source...

    @Kostronor – Okay, so you have this check in your bed leave listener:
    Code:
    if (player.getServer().getWorld(world).getFullTime() > 44000 || player.getServer().getWorld(world).getFullTime() < 1000 )
    Unless I'm missing some caveat, I think the following would work better and function for all worlds:
    Code:
    if(player.getWorld().getTime() > 12000)
    And then you could remove all the code related to getting the level name from the server.properties.

    Even if you had a good reason for using getFullTime(), the key point here is that you should get the world from the player, not from the server.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 14, 2016
  6. Offline

    Kostronor

    good idea, changed ;)
     
  7. Offline

    Xemnias

    @Kostronor
    Can i translate you're plugin into french ? ( it's for my server ... Yes, i know that with the source code it's simply, but i want to ask the permission ! :rolleyes: )
     
  8. Offline

    Kostronor

    Sure!
    Just send it too me then, so everyone can use it :)
     
  9. Offline

    Xemnias

    Ok ! Just two minutes !

    ########################
    EDIT :

    Done ! :p
     
  10. Offline

    terracraft

    love dis mod
     
  11. Offline

    Kostronor

    Added :)

    Thanks :D
     
  12. Offline

    denieru7

    Hi, this mod would be great but it doesn't work properly for me.
    At night, if I sleep and then click Leave Bed before morning, I get healed.
    However, if I sleep and wait for morning to come, I do not get healed at all.

    It would be great to be able to configure the message (with the option of turning it off entirely).
    Also, could the hunger bar be restored, too?
    Thanks!
     
  13. Offline

    Kostronor

    well, this plugin was writen before the hunger-bar had been in minecraft, so yes i could :D
     
  14. Offline

    Kostronor

    Since @denieru7 was the only one posting here since a long time,
    i am asking you all, should i maintain this plugin? od just drop it...
     
  15. Offline

    denieru7

    Hi Kostronor,

    I am currently using BedRestore because BedHeal doesn't work properly like I described above, but if you could fix it and add the improvements I suggested above, I would definitely use this plugin!
     
  16. Offline

    Damperen

    I think you should maintain it, i've been planning on adding this to my server :}
     
  17. Offline

    Kostronor

    denieru7
    Damperen
    Well, since you both need this, i think, i will rework it to let it work with the latest version!
     
  18. Offline

    Celtic Minstrel

    I also would still be interested in this.
     
  19. Offline

    Kostronor

    denieru7
    Damperen
    ok, seems there is some interest, i will tag you when it works again
     

Share This Page