Page 1 of 1

JSONAPI Not sending commands to my mc server

Posted: Sat Jul 13, 2013 10:00 am
by killfrog47
Hello all =)
Alright so here is whats goin on. I am trying to make a page that will allow my players to add themselves to the whitelist. The code is set up how it should be but its just not working! Its making me crazy lol. All ports are open and double checked on both ends.

Here is my php code for my website:

Whitelist_handle.php:
<?php
require('JSONAPI.php');

$user = $_SESSION['user'];
$email = $_SESSION['email']; //this is for later when I make it actually add them to the whitelist. For now im just trying to run a simple command to my server. 


//It should do "/say test" on my server. But it wont!
$obj = new JSONAPI('ip', 20059, 'uname', 'pass', salt);
	$obj->call("runConsoleCommand", array("say test"));
		echo "The test ran.";
	
?>
Any help would be great! I honestly dont know what is causing this error. It was working pre 1.6 =/ I have the latest build of JSONAPI

EDIT: I also get no errors on my console. I do however see this:
07:00:00  [SEVERE] Reached end of stream for /108.175.158.213
07:00:04  [SEVERE] Reached end of stream for /108.175.158.213
07:00:39  [SEVERE] Reached end of stream for /67.43.7.19
07:08:09  [SEVERE] Reached end of stream for /108.175.158.213
07:10:08  [SEVERE] Reached end of stream for /67.43.7.19
07:22:19  [SEVERE] Reached end of stream for /67.43.7.19
07:27:06  [SEVERE] Reached end of stream for /174.100.93.19
07:27:51  [SEVERE] Reached end of stream for /67.43.7.19
07:34:07  [SEVERE] Reached end of stream for /108.175.158.213
07:34:27  [SEVERE] Reached end of stream for /67.43.7.19
07:35:28  [SEVERE] Reached end of stream for /108.175.158.213
07:36:01  [SEVERE] Reached end of stream for /67.43.7.19
07:43:49  [SEVERE] Reached end of stream for /108.175.158.213
07:44:54  [SEVERE] Reached end of stream for /67.43.7.19
Now the 108.175.158.213 is my web server. The other IPs idk. From what I understand with 1.6 when a client or something else pings/checks the status of the server it sends this. So IDK if it is messin with JSONAPI.

Re: JSONAPI Not sending commands to my mc server

Posted: Sat Jul 13, 2013 10:39 am
by Helx
It could just be a case of broken plugins, even if you do have the latest version.
I don't believe it's your code, though it may be worthwhile to look at the update notes and API changes with the new version of the plugin (maybe even plugin config? Possible change of port listening?).

FYI, the IP 67.*.*.19 is one of http://minecraftservers.net/ 's nameservers. If that's running at the same time as you trying to send the command, then you could also be trying to connect to minecraftservers.net in an obviously error-ridden way (maybe for voting?).

If you haven't even heard of minecraftservers.net, then the plugin author may be maliciously making your server vote for his or her own server. Don't think too much of it though, I'm sure the BukkitDev staff would've already picked something like that up.

Re: JSONAPI Not sending commands to my mc server

Posted: Sat Jul 13, 2013 1:38 pm
by killfrog47
Helx wrote:It could just be a case of broken plugins, even if you do have the latest version.
I don't believe it's your code, though it may be worthwhile to look at the update notes and API changes with the new version of the plugin (maybe even plugin config? Possible change of port listening?)....
Hmm that would be causing it. Ill get in touch with the developer. As far as the minecraftservers.net I believe I have my server connected to it. Im not sure ill have to check lol. As long as my code is working thats all im worried about. I didnt think I had any errors in it. Ill look over the changes in the plugins update. Thanks Helx =)