Hello, where I can find script like this: Server ip: Server status: Server slots: In server online players: Maybe I can get it without plugins? Only php script or smth like this?
Yes, but about the last point is hardly. I know that this can be done via the plugin P.S Sorry, i use google translit
Are you going to add anything useful to the conversation? To the person that started the thread, there are several plugins (such as those mentioned by XtenD) that will help you achieve this. Do you know PHP?
Yeah, but now i need to install plugin, install mysql... I will try to make it with rcon, but idk, maybe there are already made.
I have a PHP script that get Server name, IP, Port, online players/slots PHP: <?phperror_reporting(0); //prevent error when server can not be reached$host = $_GET['ip']; //server.php?ip=IP-OR-HOSTif ($host=="") {$host = $_SERVER['REMOTE_ADDR'];}$port = 25565;if (substr_count($host , ".") != 4) { //If not an IP, resolve host$host = gethostbyname($host);}//connect to serverecho "checking $host on port $port...<br>";$socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);$timeout = array(sec=>3,usec=>0);socket_set_option($socket, SOL_SOCKET, SO_RCVTIMEO, $timeout);socket_set_option($socket, SOL_SOCKET, SO_SNDTIMEO, $timeout); $connected = socket_connect($socket, $host, $port); if (!$connected) { //If not connected: die die("Server offline"); }if ($connected) { $ping_start = microtime(true); socket_send($socket, "\xFE", 1, 0); $data = ""; $result = socket_recv($socket, $data, 150, 0);$ping_end = microtime(true); socket_close($socket); if ($result != false && substr($data, 0, 1) == "\xFF") { //get values $info = explode("\xA7", mb_convert_encoding(substr($data,1), "iso-8859-1", "utf-16be")); $serverName = substr($info[0], 1); $playersOnline = $info[1]; $playersMax = $info[2]; $ping = round(($ping_end - $ping_start) * 1000);//echo values echo "Server: $serverName<br/> Address: $host<br/> Port: $port<br/> Players Online: $playersOnline/$playersMax <br/> Ping: $ping ms<br/>"; } else { echo "Failed to receive data"; }} else { echo "Failed to connect";}?> Ping isn't really useful, as it changes all the time