PHP-Minecraft-Rcon
PHP-Minecraft-Rcon copied to clipboard
Simple Rcon class for php.
一直显示Rcon.php的第68行有问题,我怀疑是PHP的版本不对(我当时用的是PHP 5.6),所以我升级了版本(现在是PHP 7.4),但是依旧会报错。 求解决,挺急的 ╥﹏╥ ` Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /www/wwwroot/duxianmen.com/api/mc_server_rcon/src/Rcon.php on line 68 Warning: fsockopen(): unable to connect to xhn.server.xyc.red:35974 (php_network_getaddresses: getaddrinfo...
Hi i read the redme and there is nothing about how to get the responses
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...
Last time I did not understand enough what I was told, but now I will do everything that you advise me to solve this problem !!! My site can send...
I am using this code on a Laravel based system ``` $rcon = new Rcon('ip, port, 'password', 1); if ($rcon->connect()) { Log::info('connected'); $rcon->sendCommand("say Hello World!"); } else { Log::info('disconected'); }...
Please discuss any issues related to using this library with Unturned / RocketMod in this thread.
My site can send only "say hello world!" and "bc {msg}" Other command in console send this: **Rcon connection from: /195.60.229.4** What i can do? Tell me pls! Code: http://timpixel-drive.ddns.net/uploades/Timpixel2020/this111.txt
an error
Fatal error: Uncaught Error: Class "Rcon" not found i have tested on 1 bilion ways but it dont works
Reading responses bigger than 4096 was not possible due to splitting the response into multiple packets. I've addressed the issue by sending additional "ping" command packet and looking for "Pong!"...
Warning: unpack(): Type V: not enough input, need 4, have 0 in C:\xampp\htdocs\MinecraftCP\rcon.php on line 198 Notice: Trying to access array offset on value of type bool in C:\xampp\htdocs\MinecraftCP\rcon.php on...