[DONE]Disable bed usage

Discussion in 'Archived: Plugin Requests' started by antikx, Sep 24, 2012.

  1. Offline

    antikx

    I'm trying to finish a map that I want to play with some friends on Friday.
    I have it almost ready to go, but I don't want people sleeping in beds and messing with their spawn point.
    Plugin category: Not sure, sorry.

    Suggested name: DisableSleep

    What I want: When a player right clicks on the bed, a (configurable) message is displayed, no spawn point is set and the player does not go to sleep.It might be kind of cool if they just stay laying in bed un til they choose to leave it, but that's not essential.

    Ideas for commands: No commands needed for this plugin.

    Ideas for permissions: disablesleep.cansleep. Set it to false by default

    When I'd like it by: Friday.
     
  2. Offline

    Kodfod

    Give me a few moments and i can whip this up for you.
     
  3. Offline

    antikx

    oh my heck that would be great. thanks.
     
  4. Offline

    Kodfod

    Click here to download

    It stops them from entering the bed, i will try to find a way to not sleep if in the bed. Not sure if possible....

    In the config if you type:

    Code:
    Message: &e[No Bed]: &cSorry But you can not sleep!
    It would turn into:

    [No Bed]: Sorry But you can not sleep!
     
  5. Offline

    antikx

    ya! Works great. thanks!
     
  6. Offline

    Kodfod

    For any one who cares here is The Source.

    Main Class: (open)


    [​IMG]


    Config Class: (open)


    [​IMG]
     

Share This Page