Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gamemann/map-restart
A simple plugin for SourceMod that restarts the map or server after the time limit is up and no clients.
https://github.com/gamemann/map-restart
map metamod restart server sm-plugins sourcemod sourcemod-plugin sourcemod-plugins sourcepawn
Last synced: 5 days ago
JSON representation
A simple plugin for SourceMod that restarts the map or server after the time limit is up and no clients.
- Host: GitHub
- URL: https://github.com/gamemann/map-restart
- Owner: gamemann
- Created: 2022-06-13T00:09:39.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-06-13T00:09:55.000Z (over 2 years ago)
- Last Synced: 2024-10-11T02:25:19.460Z (27 days ago)
- Topics: map, metamod, restart, server, sm-plugins, sourcemod, sourcemod-plugin, sourcemod-plugins, sourcepawn
- Language: SourcePawn
- Homepage: https://moddingcommunity.com/
- Size: 2.93 KB
- Stars: 11
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Map/Server Restart
## Description
A simple plugin for SourceMod that restarts the map or server (if configured properly) after the time limit is reached and the server is reported as empty (not including bots).From the testing I've performed, the plugin will still trigger even when the server is hibernating.
```
x.x.x.x:27005: password failed.
Client "[LBG] Christian" connected (x.x.x.x:27005).
Server waking up from hibernation
Game will not start until both teams have players.
Game will not start until both teams have players.
Going to intermission...
Dropped [LBG] Christian from server (Disconnect by user.)
Server is hibernating
L 06/13/2022 - 00:01:41: [map_restart.smx] [MR] Found time to trigger map/server restart.
---- Host_Changelevel ----
find L 06/13/2022 - 00:01:42: -------- Mapchange to de_dust2 --------
ConVarRef room_type doesn't point to an existing ConVar
```## ConVars
Here is a list of the plugin's ConVars along with their descriptions and default values.```
// This file was auto-generated by SourceMod (v1.10.0.6537)
// ConVars for plugin "map_restart.smx"// How often to check if we need to restart the map in seconds.
// -
// Default: "10.0"
sm_mr_check_interval "10.0"// Whether to log when a map/server restart is triggered.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_mr_log "1"// Whether to restart map when the server is reported as empty.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_mr_restart_on_empty "1"// 0 = uses 'changelevel' command. 1 = executes 'quit' command.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_mr_restart_type "0"
```## Credits
* [Christian Deacon](https://github.com/gamemann)