diff --git a/src/API/ServerAPI.php b/src/API/ServerAPI.php index 5c70f9a1..0099799c 100644 --- a/src/API/ServerAPI.php +++ b/src/API/ServerAPI.php @@ -346,7 +346,7 @@ class ServerAPI{ } if($this->getProperty("enable-rcon") === true){ - $this->rcon = new RCON($this->getProperty("rcon.password", ""), $this->getProperty("server-port"), $this->getProperty("server-ip", "0.0.0.0")); + $this->rcon = new RCON($this->getProperty("rcon.password", ""), $this->getProperty("rcon.port", $this->getProperty("server-port")), $this->getProperty("server-ip", "0.0.0.0"), $this->getProperty("rcon.threads", 1), $this->getProperty("rcon.clients-per-thread", 50)); } if($this->getProperty("enable-query") === true){ $this->query = new Query();