mcpi-ping/example.php

22 lines
405 B
PHP
Raw Permalink Normal View History

2023-07-22 18:43:50 +00:00
<?php
include "mcpi.php";
$mcpi = new mcpi();
// ping away !!!
try{
print_r($mcpi->ping("androidmc.hopto.org", 19133));
}catch(Exception $e){}
try{
print_r($mcpi->ping("68.194.116.245", 19132));
}catch(Exception $e){}
try{
print_r($mcpi->ping("146.198.132.171", 19132));
}catch(Exception $e){}
try{
print_r($mcpi->ping("pi-land.minecraft.pe", 19132));
}catch(Exception $e){}