[RPG] MyBed v0.2 - Players cannot sleep in other Players' beds [953]

Discussion in 'Inactive/Unsupported Plugins' started by Codisimus, Jun 29, 2011.

  1. Offline

    Codisimus

    This page will no longer be updated. Please follow this project at the Bukkit Dev Page

    MyBed - Players cannot sleep in other Players' beds
    Version: 0.2 (7/16/2011)
    Supports iConomy, BOSEconomy, Essentials, Permissions
    Download Page

    Features:
    • Players own a bed when they sleep in it
    • A Player cannot sleep in another Players' bed
    • A Player cannot destroy another Players' bed
    • Signs can be used to make Inns
    • Inns can charge Players to sleep in a bed
    • Inns can regenerate health
    • Fully customizable messages
    To setup an Inn first own the bed.
    Then place a sign above the bed and format it as follows:
    First line = wutever you want
    Second line = Cost: x (x is the amount of money which will be taken from the sleeper and given to the bed owner)
    Third line = Health: x (x is the amount of half hearts regenerated by the sleeper)
    Last line = wutever you want

    Here is an example of an Inn sign:
    ____________
    Cody's Inn
    Cost: 10.5
    Health: 6
    Enjoy your stay!
    ____________

    Permission Nodes:

    • mybed.inn - needed to make an Inn
    • mybed.own - needed to own a bed
    Changelog:
    Old Versions + ChangeLog can be found at Download Page
    Version 0.2 (7/16/2011)
    • Added Economy support
    • Added Sign commands
    • Added Permission nodes mybed.own and mybed.inn
    • Added Customizable messages with color support
    Version 0.1 (6/29/2011)
    • Initial Release
     
    kahlilnc likes this.
  2. Offline

    enelar

    2) I have 1 bed, that could heal me 1 hp per one sleep.
    For exaple one hp every day free - so cool.
    1)
    I have 0.5 hp.
    I sleep on bed over 9000 times => i have full hp.
     
  3. Offline

    rebalance

    One of the best plugins iv ever seen thanks!!
    (downloading...)
     
  4. Offline

    Codisimus

    ok got it, I'll make it so you only get healed the first time you sleep each night
     
  5. Offline

    enelar

    Only on my bed (one per player)? Awersome!
     
  6. Offline

    PowerSet

    Maybe I missed it somewhere, but does this allow you to sleep when it is not night? I keep seeing posts about multiple sleeps and whatnot, and am just curious.
     
  7. Offline

    Codisimus

    no it doesnt.
     
  8. Offline

    VeryInsane

    Please keep dis updated :D
     
  9. Offline

    Codisimus

  10. Offline

    Codisimus

    kahlilnc likes this.
  11. Offline

    kalez

    Would it be possible to somehow make it so that we can make the money go to the "server" instead of the person who made it. Like im setting up an inn in the city on our server, but i dont want the money going to me. im an op but i play like a normal player and dont want the money.
     
  12. Offline

    Codisimus

    ya I can do that, should the player line say server or just be blank?
     
  13. Offline

    kalez

    up to you. whatever works best =b

    Edit: How rude of me. I forgot to say thanks. Thanks alot! This makes alot of things possible for us :D

    Edit2: hey Codisimus, i seemed to notice something and had an inkling . when i spend a night at the inn, that becomes my new spawn point because i slept there. fairly normal, but if someone else sleeps there does that remain my spawn point? i dont remember if this is how beds normally work or not, but if someone else rents the bed for a night it should relinquish that as your spawn point. if thats how things work already then ignore this Edit2 lol
     
  14. Offline

    Codisimus

    I don't think that is how it works so I'll look into adding that as an option if it doesn't cause other problems.
     
  15. Offline

    kalez

    Awesome!

    Edit: Hey Codisimus, i meant to post this to you a while ago, but i kept forgetting. What about people who make guest rooms at their homes? You could make it work the same way as an inn but instead the sign over the bed could just say "Guest"

    Edit2: I followed the links but i couldnt find your changelog. I am just curious; like to read up on backinfo about the plugins i use =b
     
  16. Offline

    Codisimus

    I will add a "guest" feature but until then just put cost:0 and health:0
    I am working on getting my website back up and running but most of the information is on the Bukkit dev Page dev.bukkit.org/server-mods/MyBed This forum page is no longer updated
     
    kalez likes this.
  17. Offline

    kalez

    I looked there but couldnt find it. And thanks! Yeah, i thought about the 0 and 0 but its still not a perfect solution :p

    Love this plugin!

    Edit: Oh, and, you probably already know, but dont forget to make the Guest available for anyone to make, not just ops or whatever.
     
  18. Offline

    Codisimus

    Yes I realize the 0 and 0 doesn't work bc only admins can use it. Guest will default to be available to anyone
     
    kalez likes this.
  19. Offline

    Codisimus

    @kalez
    I added a "Guest Bed" feature to version 0.5.0
    I also included another permission node (mybed.guest), mybed.guest is true by default and mybed.inn is not op by default.
     
  20. Offline

    kalez

    Awesome! Thanks

    Edit: Hey Codisimus, not to nag, you added the guest bed, but not the Server Inn (where the money goes to no one). Are you still planning on adding this feature? Need it soon if ya can! (About to open our server for play)
     
  21. Offline

    Codisimus

    Did you request that? I must've forgot. adding it now...

    EDIT: I made it so you create it by typing "Server Inn" instead of "Inn" on the top line. If you have a better idea of how to format it let me know. Testing now, should be uploaded in 5 minutes.

    EDIT: Version 0.6.0 is uploaded. be sure to add the new permission node mybed.server_inn

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

    kalez

    You. Rock. And as for the Server Inn, i honestly thought about that for a while, and i couldnt think of anything else either lol. Thanks so much

    not sure exactly sure what exactly is happening now, but me and another op both made beds for testing. doesnt matter if its in survival or creative modes, op or no op, when we make the the server inn beds, they say inn was made.

    but when we lay down in eachothers and our own beds for testing, it says nothing at first, and then it takes all his money and none of mine, and works even if he doesnt have money, but doesnt say anything when we wake up either. also it takes him 5-10 clicks to lay down, and he has a better connection then i do.

    also it seems that both beds are in my name in the .dat file, possibly because both beds were mine at first? tested breaking the beds and each laying their own bed down, and deleting all the mybed files. getting the same results regardless.


    EDIT: ok the issue is this:
    it wasnt relinquishing the bed location from my name even when broken, so when he put a bed in that spot it was still mine, its still putting it in our names even if a server bed, and when we sleep in our own nothing happens money wise, but if we sleep in eachothers, it takes a long time to lay down and takes all money, and can sleep in a bed even if you have no money.

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

    Codisimus

    Ok I believe I have fixed everything that would cause these issues, try this Dev Build
     
  24. Offline

    kalez

    Ew Dev build lol. I'll test what i can, but no one else is online at the moment, so i cant give a full analysis like before


    Edit:
    - still had my name attached to Server Inn bed in the .dat
    - told me i needed the money but let me sleep in the bed anyway
    + told me it deducted (didnt before because my name was attached to Server Inn bed in the .dat)
    - upon second attempt to sleep (this time with 200$) it took about 5 clicks to lay down and took all my money
    - when bed was destroyed it was still in the .dat file

    i think thats as far as i can test by myself atm
     
  25. Offline

    Codisimus

    hmm, I thought I fixed at least half of those...
     
  26. Offline

    kalez

    Sorry :/
     
  27. Offline

    Codisimus

    @kalez ok now everything is fixed
     
  28. Offline

    kalez

    Nope
    the only difference is that now it doesnt charge or say anything for our own Server Inn beds again. could it be the fact that it has a space in Server Inn? i really dont know just guessing. everything else is still the same problems
     
  29. Offline

    Codisimus

    can you delete your save file? or at least these entries
     
  30. Offline

    kalez

    Yes, i deleted everything before i tested every time, just to be sure it didnt hang onto anything. Im a pretty thorough tester :p
     
  31. Offline

    Codisimus

    which version does it say it is? maybe I uploaded the wrong thing bc I did a lot of testing this time and everything worked out fine (as long as it was from a clean save file)
     

Share This Page