Skip to content

The Auto Updater plugin automates the update process for your Counter-Strike 2 (CS2) server.

License

Notifications You must be signed in to change notification settings

qq410525209/CS2-AutoUpdater

 
 

Repository files navigation

CS2-AutoUpdater

The Auto Updater plugin automates the update process for your Counter-Strike 2 (CS2) server.

Important

It is required for the server to have hibernation disabled: sv_hibernate_when_empty set to false.

Features

  • Automatically checks the current game version of Counter-Strike 2 by querying Steam's API.
  • Notifies players about the upcoming server restart.
  • Translations.

Installation

Requirements

Download the latest release of CS2-AutoUpdater from the GitHub Release Page.

Extract the contents of the archive into your counterstrikesharp folder.

Build Instructions

If you want to build CS2-AutoUpdater from the source, follow these instructions:

git clone https://github.com/dran1x/CS2-AutoUpdater && cd CS2-AutoUpdater

# Make sure the CounterStrikeSharp dependacy has a valid path.
dotnet publish -f net7.0 -c Release 

Confiuration

{
 "ConfigVersion": 2,
 "UpdateCheckInterval": 180,
 "ShutdownDelay": 120,
 "MinPlayersInstantShutdown": 1,
 "MinPlayerPercentageShutdownAllowed": 0.6,
 "ShutdownOnMapChangeIfPendingUpdate": true
}
{
//ConfigVersion=版本号
//UpdateCheckInterval=检查的时间间隔,单位为秒
//ShutdownDelay=当服务器决定关闭时,延迟多少秒执行
//MinPlayersInstantShutdown=立即关闭服务器所需要的人数,如果为0,服务器没人就立刻关闭进行更新
//MinPlayerPercentageShutdownAllowed=允许关闭的玩家比例。当在线玩家人数少于总人数的 60% 时,允许服务器关闭
//ShutdownOnMapChangeIfPendingUpdate=如果有更新待处理,在地图更换时是否关闭服务器 true为启用
}

About

The Auto Updater plugin automates the update process for your Counter-Strike 2 (CS2) server.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%