-
Notifications
You must be signed in to change notification settings - Fork 56
[Not solved, please help!] Not working ^_^ #22
Copy link
Copy link
Open
Description
The script is
require_once('rcon.php');
$host = 'my host'; // Server host name or IP
$port = 25575; // Port rcon is listening on
$password = 'my password'; // rcon.password setting set in server.properties
$timeout = 3; // How long to timeout.
use Thedudeguy\Rcon;
$rcon = new Rcon($host, $port, $password, $timeout);
if ($rcon->connect())
{
$rcon->sendCommand("say test");
echo $rcon->get_response();
} else {
echo "no, lol";
}
And I get "no, lol" message in index file (without "else", I get nothing), what to do? I looked in console, command not sended. No error, no nothing
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels