Skip to content

V1.0.0

Latest

Choose a tag to compare

@mihaigsm2003 mihaigsm2003 released this 02 Mar 21:43
· 1 commit to main since this release
c53f65b

ServerTime Plugin for CounterStrikeSharp / CS2

image

Version: 1.0.0
Minimum CSS API Version: 360

Description

ServerTime is a simple CounterStrikeSharp plugin that displays the server’s current time in chat.
It supports multiple commands, configurable time format, and colored chat messages with a visible prefix.

  • Shows the server’s real time (dedicated machine time)
  • Works on Linux and Windows
  • Supports custom commands and messages
  • Displays separators for visibility

Features

  • Multiple commands: !time, !ora, !thetime
  • Customizable message with {time} placeholder
  • Chat colors: [ServerTime] green, time yellow
  • Optional separators in chat

Installation

  1. Download plugin to your server.
    addons/counterstrikesharp/plugins/ServerTime/

  2. Start or restart the server.

  3. The config JSON is automatically created at:
    addons/counterstrikesharp/configs/ServerTimePlugin.json

Configuration

Default ServerTimePlugin.json:

{
  "Commands": ["css_time","css_ora","css_thetime"],
  "TimeZone": "",
  "TimeFormat": "HH:mm:ss",
  "Message": "Server time: {time}",
  "Version": 1
}
  • Commands – list of commands players can use
  • TimeZone – leave empty to show server’s real time
  • TimeFormat – .NET DateTime format
  • Message – text with {time} placeholder
  • Version – config version