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
also what timezones are these times using?
In reply to Heros5k:
The bukkit server timezone.
How do I change the message in /openinghours command?
In reply to Heros5k:
That cannot be changed at the moment. I requested to regain access to my account today. When I have it, I can make it changeable.
The message is currently "Opening Hours:" with the opening and closing times. What part would you like to change?
In reply to _ForgeUser101392234_unmerged2:
I'm not sure how that happened, but I was testing the opening times in a time span of 30 minutes and everything worked, then the next day I was setting the opening times for a span of 9 hours but these were 2 hours off than set (Instead of 12:00-21:00 just like it was set, you could only connect between 14:00-23:00) so I would like to change the opening hours message to the actual times you can connect independent to what it's set in the config because of those 2 hours off.
WORKS IN 1.16.1
@iMoritz
Not explicitly (yet), but for now you could use the per-day settings for that: just set the opening hours pretty short for closed days (e.g. 01:00-01:05)
Is there now a way to only open on some days in the week?
"expert"? one of the guys who write stuff for newspaper? xD
Why do u get no players? Because they cant join as result of an error? Or because they cant join 24/7? You can´t blame a plugin that it work like it should.
this plugin is great for tfc-server or small community who want to play together - because there is always one guy who have too much time and over-farm, so it makes less fun for other - or join always at night when no gm is online to cheat.
Hello, a Server Expert says to my:
Servers whit Openinghours do get no Players.(...)
So i cant, sorry, it use. Because i need the players.
Yay, its there :)
Thank you!
Hey t_ice,
I want to say thank you, that you will update this plugin - and so because its x-mas and i see that you have no logo for that nice´n´useful plugin I made one.
Its nothing special, but i hope you like it :)
https://www.dropbox.com/s/154wxwfd0lo55vt/OpeningHours_Logo_WestZahid.de.png?dl=0
Merry X-Mas
@M4RSAL
Your picture doesn't show up...
Help !
@StormLasj
That's not possible at the moment. The best option for now is close very late (e.g. 23:55) and open very early the next day (e.g. 00:05).
Thanks for the nice suggestion though. I'll add it in the next version, available somewhere next
weekmonth (daytime job demands...)@t_ice
How can u have closing time all week except friday and saturday night? I have tried several combinations without luck. Thanks
@t_ice
Ok I might just be something I have done wrong. But I cant get it to work. Guess I have to check it again. :)
@StormLasj
I'm unaware of any issues with this plugin for Bukkit versions up to the current development build.
Please let me know of any issues or feature requests.
@t_ice
Will this plugin be update to 1.7.4?
@LastBlockOrg
The plugin already supports the 24 hour time notation. Or do you mean something else?