Skip to content

[Not solved, please help!] Not working ^_^ #22

@ItsTauTvyDas

Description

@ItsTauTvyDas

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions