[Formatted] NEW BED FEATURE - [FIX] AfternoonNap FINISHED

Discussion in 'Archived: Plugin Requests' started by pom32, May 25, 2012.

  1. Offline

    pom32

    Plugin category: [FIX]​

    Suggested name: Afternoon Nap

    A bit about me: I run a server with a few friends and we like to play vanilla minecraft. But soon we noticed minecraft was buggy and lacking a bit so we got plugins which add thing to fill in the holes in minecraft.​
    What I want: IRL you can sleep at night and wake up in the morning and you can take a nap in the afternoon and wake up in the evening...so you should be able to do that in minecraft too.​
    the plugin should be able to:​
    instead of saying the message in the day "you can only sleep at night" it should say "you are taking a afternoon nap" and put players in the bed and turn the time to evening​
    likewise in the night, it should say "you are sleeping for the night" and put players in the bed and set time to morning​


    Ideas for commands: /bed toggle - toggle between 3 modes (day sleeping, night sleeping, or day/night sleeping)​


    Ideas for permissions: Bed.Day​
    Bed.Night​
    Bed.Admin​

    When I'd like it by: The end of the month sounds nice



    LINK TO PLUGIN THREAD
    http://forums.bukkit.org/threads/fi...eep-expierence-1-2-5-r3-0.77615/#post-1136841
     
  2. Offline

    colony88

    I have a question: In multiplayer, every player on the server has to be in bed to change the time. Do you want this to be the same for this plugin?
     
  3. Offline

    pom32

    yes because i run a very small server so ppl not getting in bed isnt a problem
     
  4. Offline

    colony88

    Umm, another one: who should be able to toggle the command?
     
  5. Offline

    pom32

    any one with the permission node
    Bed.Admin


    ----
    also if any one has any suggestions they are very welcome

    Is any one else interested ? :)

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

    nicholasntp

    Seems like a cool feature I would love. Unfortunately I dont think I have time to make it.
     
  7. Offline

    pom32

    Orcem12 would you be interested?
     
  8. Offline

    Orcem12

    So you want the player to wake up at a certain point in Minecraft if they sleep at a certain point?
     
  9. Offline

    pom32

    Basically if they sleep at day they wake up at night and vise versa
     
  10. Offline

    Orcem12

    Quite possible, but, I cannot override the "Exit Bed" Button.
     
  11. Offline

    pom32

    Hmm well I guess that's alright just list it as a limitation for now

    Just make sure to make it so after the sleep it done it tells you so you know if it worked or not
     
  12. Offline

    Orcem12

    Alrighty, I'll get started tonight
     
  13. Offline

    pom32

    Remember to make include the messages and check if all players are in a bed or else they can spam and crash the server

    See you tomorrow (with the plugin I hope)
    ;)
     
  14. Offline

    Orcem12

    I can make it otherwise...
     
  15. Offline

    pom32

    What do you mean. I don't understand:/ plz give me a list of features ur adding just so we are clear?
     
  16. Offline

    Orcem12

    Well to what I understand your thinking I have to check how many players are sleeping unless server crashes? That is not true. I can add a feature that choices how many players must sleep. I can even make it configurable.
     
  17. Offline

    pom32

    Ok that's fine I meant u ought to make it so all players sleep so that one person can't rapidly spam sleep and change time rapidly to crash the server but I guess you got it under controll with ur config

    Ok I have to sleep now so just make the plugin now
     
  18. Offline

    Orcem12

    O yes, I'll make everything configurable. If you wish to keep the plugin private please PM so we can talk business.

    Btw, I do like acceptable manners. Don't treat me like your employee. Not using words like, please, thanks, really irritates me after you list a bunch of work for me to do.
     
  19. Offline

    colony88

    Can I see the code afterwards? I can't find a way to force the player into a bed with onPlayerInteract
     
  20. Offline

    pom32

    I think I found a concept to force the player to exit the bed after sleeping is successful.
    What u can do is spoof the bed do that the client thinks the bed has been Brocken forcing the player to "stand up"
    The reason for spoofing is so that the spawn point of the player doesn't get reset

    And also I wish for this to be a public plugin

    Orcem12 I just wanted to thank you as I realized I haven't said so. Can you please provide a status update ?

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

    Orcem12

    It's coming. I'll pm you a beta version?
     
  22. Offline

    izak12345678910

    Make it public please. Thanks!
     
  23. Offline

    pom32

    It be better if you post the beta and all versions here so it's public ;D thx
    I'll be able to test the plugin in an hour and I'll post some feedback for u
     
  24. Offline

    Orcem12

    Upon your request OP.
    Depends: Vault
    Commands: /Check
    Permissions: AN.commands.CheckBeds

    Usage:
    Simply left click on bed, you will be blinded and frozen to immediate sleeping. (Creative eh?) Once the configured amount of players is 'sleeping', configured time for nap will engage. (Note; I cannot remove the default warning. I'm sorry.)

    Please explain your idea for permissions again, thanks.

    Example Configuration:

    Code:
    Afternoon_Nap_Message: '&4You are taking an afternoon nap.'
    AfternoonNap_TimeSet: 0
    NightNap_Message: '&1You are going to bed!'
    NightNap_TimeSet: 0
    # Players that must be sleeping to change the time
    Players_Sleeping: 1
    # 0 - 17999 are morning times
    # 18000 - 24000 are night times
     
  25. Offline

    pom32

    Orcem12
    Can you make vault optional (disable permissions in config will get rid of dependency)

    As for the permissions nodes i don't really care since I won't use them ^^ what ever is easier for u is good

    And in the config instead of
    # Players that must be sleeping to change the time
    Players_Sleeping: 1

    Make it
    # Should all players have to be in bed to change the time? If false state the total players required
    All_players_sleep: true
    Players_Sleeping: 1
     
  26. Offline

    Orcem12

    @pom32
    Alright, other than that?
     
  27. Offline

    pom32

    Other than that you can add configurable potion effects that linger for a minute(customize able) after waking but I suggest adding this for V2.0
     
  28. Offline

    Orcem12

    No I mean is it what you wanted? I'll add that as well.
     
  29. Offline

    pom32

    Ya thats what I want instead of

    Edit
    How do I edit the title so I can say a beta is avalible?

    Done
    Title changed
    Beta download added

    :D

    Orcem12

    Status update? If your working on potion effects and finished everything else u should put it in plugin submissions and put potion as upcomming features (sorry if you feel rushed I'm very excited)

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

    Orcem12

    After making plugins for a year, I don't share the same kind of excitement, here, let me fix everything.

    pom32
    Here: V2
    Vault is optional, player must be OP to run checkbed command otherwise.
    Added Player_all feature.
    Added Configurable Potion Effect Time.

    Edit: Please don't redistribute my plugin. I'll make a submission thread for it.

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

Share This Page