OpeningHours
Any player logging in outside of opening hours gets a clear message stating the opening hours and is denied access.
Players logged in at closing time get a warning that the server will close down beforehand and are
disconnected from the server at closing time with a message explaining this.
- The opening hours are specified in the configuration file.
- All messages can be set and localized in the configuration file.
![]()
Installation
As usual: put the OpeningHours.jar in the plugins directory.
Command
/openinghours displays opening hours per weekday.
Permissions
permission 'openinghours.ignore' allows a user to login outside (and inside) of opening hours.
permission 'openinghours.openinghours' allows a user execute the /openinghours command to display opening hours per weekday.
Configuration
The plugin is configured via the file plugins/OpeningHours/config.yml. The first time the plugin runs it creates an example configuration file.
Example config.yml:
#Times are specified between quotes in 24 or 12 hours format.
#Spaces are ignored in times, so spaces can be added for aesthetics when used in the messages below.
#e.g. '06:00', '06:00 AM', '06:00AM', '14:00', '02:00 PM', '02:00PM'
serverOpeningTime: '09:00'
serverClosingTime: '19:00'
#override the opening times above for the days & times mentioned below (all weekdays -lower-case- are recognized):
- friday
: - serverClosingTime: '23:00'
- saturday
: - serverOpeningTime: '01:00'
serverClosingTime: '23:00' - sunday
: - serverOpeningTime: '01:00'
#Show messages:warnBeforeClose this many seconds before serverClosingTime:
warnSecondsBeforeClose: 60
#specify (comma separated) the players who should be able to login outside of opening hours
#note that permission "openinghours.ignore" does the same
ignoreFor: tarzan, jane, douglas
#messages can use parameters %serverOpeningTime%, %serverClosingTime%,
#%warnSecondsBeforeClose% and "\n" for a line feed.
- messages
: - serverClosed: 'This server is currently closed.\n\nOpening hours from %serverOpeningTime% to %serverClosingTime%.'
warnBeforeClose: 'This server closes in %warnSecondsBeforeClose% seconds.'
kickPlayer: 'Everybody is kicked because this server is currently closed.\n\nOpening hours from %serverOpeningTime% to %serverClosingTime%.'
errorOpenNotAfterClose: 'Opening time should be before closing time. Plugin disabled.'
OpeningHours Logo by WishesXD
-
View User Profile
-
Send Message
Posted Jan 27, 2014Can You By Chance Make a 24 Hour Plugin?
-
View User Profile
-
Send Message
Posted Dec 8, 2013@1sasafras1
That is unnecessary indeed. It just follow the time zone settings of the Java virtual machine, usually set by the operating system.
-
View User Profile
-
Send Message
Posted Dec 7, 2013how do you change the time zone for your server or is that uneccisary
-
View User Profile
-
Send Message
Posted Aug 7, 2013@t_ice
perfect thanks
-
View User Profile
-
Send Message
Posted Aug 6, 2013Awesome idea! Not really a plugin for my server though. This would be mainly for smaller servers that need staff online.
-
View User Profile
-
Send Message
Posted Aug 5, 2013@JeffMeikle
12 hour format support added in v1.4. If you now specify the opening hours in 12 hour format, e.g. '06:06 PM', the messages will also be in 12 hour format.
v1.4 will show up as a download after approval by the Bukkit Staff, that might take a day or so.
Could you let me know if this suits your needs?
-
View User Profile
-
Send Message
Posted Aug 4, 2013is it possible to get this to say it in 12 hour format?
Cheers
-
View User Profile
-
Send Message
Posted Jun 21, 2013I love this plugin!
-
View User Profile
-
Send Message
Posted May 31, 2013v1.3 now available:
1) Added an option to config.yml to specify opening hours per weekday.
2) Solved a bug where kicking of logged-in players at closing hour wouldn't be re-scheduled after having fired once. Note that there was no issue with checking opening hours at login.
-
View User Profile
-
Send Message
Posted May 21, 2013@Finn2711
Permission 'openinghours.ignore' added in version 1.2.
Could you let me know if this suits your needs?
-
View User Profile
-
Send Message
Posted May 20, 2013@MinescapePvP
Sure, just post them here.
-
View User Profile
-
Send Message
Posted May 19, 2013@t_ice
I have some more questions for you if you could please answer them
Thank you
-
View User Profile
-
Send Message
Posted May 18, 2013hey t_ice I have some more questions ( 192.210.148.133:25575 )
-
View User Profile
-
Send Message
Posted May 18, 2013Please make a permission to join outside of opening hours. (I know a "ignoreFor"-function is there)
-
View User Profile
-
Send Message
Posted May 17, 2013@wiedzmin137
@Liger_XT5
I added an "ignoreFor" option in version 1.1.
Could you let me know if this suits your needs?
-
View User Profile
-
Send Message
Posted May 16, 2013Fantastic idea, just what I need for my server to limit my cub groups access.
-
View User Profile
-
Send Message
Posted May 16, 2013@Liger_XT5
t_ice, can you add what suggest Liger_XT5 and option to give permissions (negative too) when in hours when you set in config?
-
View User Profile
-
Send Message
Posted May 15, 2013Suggestion: Permission to bypass this. I could see it being useful for some servers to limit players to join at certain times of the day, and only donators during the rest of the day.
-
View User Profile
-
Send Message
Posted May 15, 2013HELP y server ip is 192.210.148.133:25575
-
View User Profile
-
Send Message
Posted May 15, 2013Seu bando de bunda não coloca nem o download porq ta em desenvolvimento é o caralho esse teu plugin ai que é uma mierda bem gostosa