This plugin allows you to alter how long day and night should last.
Console Commands
tod.daylength
-- Show/change the current setting for dayLengthtod.nightlength
-- Show/change the current setting for nightLengthtod.freezetime
-- Toggle the progression of timetod.skipday
-- Skip the current daytimetod.skipnight
-- Skip the current nighttime
Chat Commands
/tod
-- Show current time/day settings
Configuration
{
"DatePreset": {
"presetDay": 1,
"presetMonth": 1,
"presetYear": 2020,
"setPresetDate": false // 'true' sets on load the predefined game date
},
"Settings": {
"authLevelCmds": 1, // accesslevel for console commands
"authLevelFreeze": 2, // accesslevel for freezing time
"autoSkipNight": false, // 'true' skips nights automatic on sunset
"dayLength": 30, // length of day in minutes
"freezeDate": false, // 'true' would keep always the same day
"logAutoSkipConsole": true, // write info about autoskip to console
"nightLength": 30 // length of day in minutes
},
"TimeFreeze": {
"freezeTimeOnload": false, // true would freeze time on plugin load
"timeToFreeze": 12.0 // the time to freeze on
}
}
Setting the date preset defines in result how long your game days lasts, when the plugin was loaded. The First of december is one of the longest, means early sunrise and late sunset.
Using "freezeDate" true would set back the day to the one before on daychanges at midnight. This results in the same sunrise and sunset times for every Rust day.
Plugin Developers
Hooks
OnTimeSunset()
Called when the plugin switches to night.
OnTimeSunrise()
Called when the plugin switches to day.
MIT License
Copyright (c) 2018 FuJiCuRa
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.