-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path!start_mp_server.bat
More file actions
27 lines (25 loc) · 1.2 KB
/
!start_mp_server.bat
File metadata and controls
27 lines (25 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
@echo off
::Paste the server key from https://platform.plutonium.pw/serverkeys here
set key=placeServerKeyHere
::Name of the config file the server should use. (default: dedicated.cfg)
set cfg=dedicated.cfg
::Name of the server shown in the title of the cmd window. This will NOT bet shown ingame.
set name=TDM 1
::Port used by the server (default: 28960)
set port=28960
::Maximum players that can enter server.
set maxclients=18
::Mod name (default "")
set mod=
::Only change this when you don't want to keep the bat files in the game folder. MOST WON'T NEED TO EDIT THIS!
set gamepath=%cd%
title PlutoniumT5 MP - %name% - Server restarter
echo Visit plutonium.pw / Join the Discord (a6JM2Tv) for NEWS and Updates!
echo Server "%name%" will load %cfg% and listen on port %port% UDP!
echo To shut down the server close this window first!
echo (%date%) - (%time%) %name% server start.
cd /D %LOCALAPPDATA%\Plutonium
:server
start /wait /abovenormal bin\plutonium-bootstrapper-win32.exe t5mp "%gamepath%" -dedicated +set key %key% +set fs_game "%mod%" +exec "%cfg%" +set net_port %port% +set sv_maxclients %maxclients% +map_rotate
echo (%date%) - (%time%) WARNING: %name% server closed or dropped... server restarts.
goto server