From 16fb69c55f898528cdf1cba4477f5bc254009b94 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Fri, 26 Dec 2014 15:50:20 -0500 Subject: [PATCH] Add Server.Port to server.ini --- .../FeatureLib/pfConsoleCore/pfConsoleCommandsCore.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Sources/Plasma/FeatureLib/pfConsoleCore/pfConsoleCommandsCore.cpp b/Sources/Plasma/FeatureLib/pfConsoleCore/pfConsoleCommandsCore.cpp index 0e94e9fa..a10a2770 100644 --- a/Sources/Plasma/FeatureLib/pfConsoleCore/pfConsoleCommandsCore.cpp +++ b/Sources/Plasma/FeatureLib/pfConsoleCore/pfConsoleCommandsCore.cpp @@ -112,6 +112,16 @@ PF_CONSOLE_CMD( SetServerDisplayName(params[0]); } +//============================================================================ +PF_CONSOLE_CMD( + Server, + Port, + "int port", + "Set server's port" +) { + SetClientPort((int)params[0]); +} + //============================================================================ // Server.File group