Rustic0
Allows admins to use /day, /night, and /now to change their local time in game.

Supported Games
GameServerKingsGameServerKings

Admin Time is a quality of life improvement for admins or players to change the time of day with a simple in game command. NOTE THIS ONLY CHANGES THE TIME LOCALLY FOR THE PLAYER RUNNING THE COMMAND, IT DOES NOT AFFECT THE SERVER TIME AT ALL. The /now command converts the local time back into the global time of the server.

Admin Time does not require the use of moderatorid or ownerid, but does support it. If you would like to allow players to use this command, see the permissions category.

Permissions

  • AdminTime.use - Allows users to change client time without use of moderatorid or ownerid.

Commands (Admin & Non Admin)

You must either be Moderator or Owner to use this command due to what it uses to change the time. To do this simply run either moderatorid <steamid> or ownerid <steamid> in console with your steamid.

  • /day - Changes the players local time to configured day value default 12
  • /night - Changes the players local time to configured night value default 1
  • /time <1-23> - Changes to the specified time (1-23)
  • /now - Reverts all local time changes to the global time of the server.

Configuration

Configuration will automatically update if any new configuration values get added, or any removed. SAVE YOUR CONFIG BEFORE UPDATING.

{
  "Day Value": 12,
  "Night Value": 1
}
MIT License

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.