-
Posts
86 -
Joined
-
Last visited
Posts posted by To175
-
-
Hi, this code works for me :
$fp = @fsockopen("mecraft.omgcraft.fr", "10252", $errno, $errstr, 1);
But this doesn't work :
Help me please !
In server.properties I have the query=true
Thanks
-
Ok, code works now thanks @Krydos
-
Thanks,
I have some troubles with CPanel, the FTP manager doesn't work... there is "dataerror".
And now I can't use other sites...
+ each time I connect to PHPMyAdmin... My server crashes... " 500 internal error...
-
Thanks, how long I have to wait please ?
-
Ho yes please + I have send a private message but it is better to see this post
My server is really big yeah
-
Ho thanks you very much ! I can have 20 or 30 players but not everytimes...
"If you don't mind having a max of 20 players online at any one time" I don't understand the problem ?
It can be nice if you could give me my variables but I didn't understand ?
I have to ask heliohost admin to open for me the port 10252 ?
-
Hoookey boy ! yOU are fantastic !! I'm really not handy with thoses codes...
Hum in better proper english, may I have your entire script please ?!
=> my server is Mecraft.omgcraft.fr:10252 and I CAN'T change this port.
<?php $ip = 'mecraft.omgcraft.fr'; $port = 10252; $onlinePlayers = 0; $maxPlayers = 0; $serverMotd = 'TESTTT'; $serverSock = @stream_socket_client('tcp://'.$ip.':'.$port, $empty, $empty, 1); if($serverSock !== FALSE) { fwrite($serverSock, "\xfe"); $response = fread($serverSock, 2048); $response = str_replace("\x00", '', $response); $response = substr($response, 2); $data = explode("\xa7", $response); unset($response); fclose($serverSock); if(sizeof($data) == 3) { $serverMotd = $data[0]; $onlinePlayers = (int) $data[1]; $maxPlayers = (int) $data[2]; echo $serverMotd.'<br/>'; echo $onlinePlayers.'/'.$maxPlayers.' player(s) online.'; }else{ echo 'Could not connect.'; } }else{ echo 'Server is offline.'; } ?>
This code just display "server is offline" :'(
in my server.proprieties
query.port=10252
rcon.port=40729
server-port=10252
-
Thank,
But this is not the question :s
I have tested all codes I could, I dont have them anymore...
I though the problem is because of the port but I don't think so now.
I really don't want to use a plugin in my server to do that !
Ok, for example This doesn't work for me
http://www.webmaster-source.com/2012/07/05/checking-the-status-of-a-minecraft-server-with-php/
I used my server : Mecraft.omgcraft.fr with port 10252
Help please
-
Hi, I have tried everything, please help me !
I need to display some variables of my minecraft server on my website.
I thought it was a problem of port but I think not... I don't know why I can't display for example : server on/off ; number of players online.
Do you know how to do please ?
Thanks !
-
Hi, when can I access to thoses services please ? Thanks
-
Hi,
1 or 2 hours ago and still now
#2002 - Le serveur ne répond pas (ou l'interface de connexion vers le serveur MySQL local n'est pas correctement configurée)
-
Ok so if you say that...
You seem to have experience in minecraft, so, do you know a plugin which doesn't need any port and don't gather so much ressources ? A plugin like JSONAPI to interact with the server ? Thanks
-
Because JSONAPI is the best... with all possibilities and simplicity...
-
Since you didn't really answer this question I'll ask it in a different way. Why can't you just use one port?What do you need three ports for?I need 3 because the autors of the plugin said that JSONAPI takes the "first" port and the 2 other ports following...
I'm a little afraid because the moderators said I can't have those ports ? :(/&--#62;
-
Hi, thanks you very much for your answer and to spend so much time for us !
I have a minecraft server : 3 years paid ! So I am making a support website (http://sciences.webfrag.tk/minecraft)
That is why I need to interact site/server. There is a plugin called JSONAPI and it need 3 ports, consecutive ports.
My minecraft host can't open other ports than : 1 88.191.242.16 40086
2 88.191.242.16 40087
3 88.191.242.16 40088
4 88.191.242.16 40089
5 88.191.242.16 40090
So if you can open 40086 or 40086 or 40088 and the 2 ports following (3 in all) it will be great
Thanks you
-
Thanks very much for these 3 ports, thanks thanks thanks.
-
Thanks,
My host sais that they can't give me an other port, I have only 40088, 40089 and 40090 can you please open these ports for my site ?
-
Hi,
sorry I think I can't open other port. The port is 40088 (40089, 40090) and I need 3 ports on my site, isn't it possible to open 40088->40090 ?
I will ask my host.
Thanks
-
Hi, I need to use JSONAPI for my minecraft server. I want to user varients of my server for my site !
I use the port 40088 on my server.
I use this code to connect to my server :
<?php require 'JSONAPI.php'; $api = new JSONAPI("88.191.242.16", 40088, "to175", "password", "salt"); var_dump($api->call("getPlayerLimit")); ?>
But I see on the page : "NULL"
The minecraft hoster said that it can have for origine my site, because of the port which cannot be open?
So why I see NULL on my page? I can't use 40088 ?
Thanks
-
Ok thanks, I will remember that
IT WOKED -
Ok thanks, when can I have news ?
-
No I can not, it says when I try to log:
Connexion au serveur MySQL non permise
When I log in cpanel and click phpmyadmin, there is the loggin page but without password, I am not connected...
-
nop :s
-
Minecraft Query
in Questions
Posted
If I use this code, I have this error :
Failed to receive challenge.
CODE :
With this class :