Plugin Name: Curfew What it's About: Curfew teleports players at a set time (ticks or time) to their home and causes the selected doors to be locked and can't be destroyed. Blocks can't be destroyed at this time, either. Commands: /curfew - Tells curfew time /setcurfew - Sets curfew time /curfewdoor - Sets a door to be locked at curfew Permissions: Curfew.settime - Person is able to set the time Curfew.curfew - Has to follow curfew Curfew.setdoor - Person is able to set doors to be locked
What if the player doesn't have a home? Also, if everyone is getting tp'd what would be the use in locking the door? EDIT by Moderator: merged posts, please use the edit button instead of double posting.
They can't go out in the streets and disturb the people. Also is helpful because it helps to stay away from mobs. If people don't have a home, it won't affect them. This means that they can destroy blocks and won't be teleported anywheres it takes affect.
This actually sounds like a fun idea. What would this exactly be used for? There's a whole other level of design behind this though. The homes needs to have a standard, if you want the plugin to interact with them, so it knows which doors to lock, and which blocks shouldn't be destroyed. It would be very simple to just stop the curfew'ed player from destroying blocks and opening doors while his curfew is active, but that wouldn't stop other players from opening his house door, and he wouldn't be able to open doors inside his house. What's your thoughts on that? Other than that, it would seem like a relatively simple task.
I wanted to use this to keep the players safe from mobs. I actually like that idea because it prevents other players to interact with those doors and the owner of the house can interact on the inside and not the out. I think an extra command to tell the plugin to lock this door at curfew would be great. I'll add a command and permission to the list.
i will start to develop this now would everyone have a seperate home? EDIT:/curfew for all commands! and ability to set default homes! EDIT 2:I am very lazy so all people will get teleported to the same place and cant place or interact with any block you can code in more if you like SCREW IT! netbeans is being very annoying but the basic structure would be when curfew starts set a variable to true and have events for interact and events for break that cancel the event if curfew variable is true EDIT by Moderator: merged posts, please use the edit button instead of double posting.