Doors locked at night

Discussion in 'Archived: Plugin Requests' started by thedjshow, Oct 30, 2012.

  1. Offline

    thedjshow

    So i was wondering if you could make so some doors locks at night example if you have a shop, then you want it to be locked at night and when its day its automatically unlocks the doors.

    So you are using a command to each doors that you want to be locked at night.
     
  2. Offline

    lenis0012

    I could do this.
    but do you want to maualy use a command for each door to be auto-locked at night?
    or for custom worlds listen in config?
     
  3. Offline

    thedjshow

    Great! A manualy command =)
     
  4. Offline

    TacoMuffinCow

    Tell me when its done! I might get this.:D If you allow that?:p
     
  5. Offline

    Jade

    Most plugin developers in this category will only do it for public, at least, the talented ones. Others only take Commission which isn't allowed here at Bukkit, I'd expect you to get it.
    Good look making this, lenis0012
    /fixed @
     
  6. Offline

    thedjshow

    Are you soon done with the plugin =) ?
     
  7. Offline

    lenis0012

    sorry completely forgot, im coding it today or tomorrow, depends on homework.
     
  8. Offline

    Woobie

    I can easily do this with a day/night sensor :p
     
  9. Offline

    Deleted user

    Because its not hard to do..
     
    JazzaG likes this.
  10. Offline

    thedjshow

    All right
     
  11. Offline

    lenis0012

    1. make a boolean night = false;
    2. make a repeating task checking the time, if its more than 0 and less than 12000, night = true;
    else night = false;
    3. makes a onPlayerInteractEvent and cancel it if night is true

    thats it.
     
  12. Offline

    Woobie

    You dont even need a plugin for this..
     
  13. Offline

    thedjshow

    Why you haf to be mad
     
    JazzaG likes this.
  14. Offline

    Woobie

    Do you even know what mad means?
    I was just telling him that this can be done without a plugin, dumbass -.-
     
  15. Offline

    thedjshow

    But, i want a plugin...dumbass
     
    JazzaG likes this.
  16. Offline

    Woobie

    Then would be a good time to learn Java ;)
     
    MrBluebear3 likes this.
  17. Offline

    lenis0012

    i forgot to say you need to make a cheker if its actualy a door :p

    and you can also bind the time checker to the event, that would work better
     
  18. Offline

    Hoolean

    NightLock
    Description: Prevents players from using their hands to open wooden doors at night or whenever a command is said.

    Commands:
    /lockdown Toggles the server not letting anyone open doors!

    Permissions:
    nightlock.override Allows the player to ignore the plugin!
    nightlock.toggle Allows the player to use /lockdown


    https://www.dropbox.com/s/vje6mmp0wmpfq40/NightLock1.4.2_0.jar
     
    Woobie likes this.

Share This Page