mcnewstools / php-minecraft-query-api Goto Github PK
View Code? Open in Web Editor NEWQuery Minecraft Server Status API
Query Minecraft Server Status API
It does not work
Why is this extra stuff coming?
http://mc-status-api.gearhostpreview.com/json.php?host=90.149.222.18&port=25565
Raw json:
{ "status": "Online", "motd": { "ingame": { "extra": [ { "color": "yellow", "bold": true, "text": "Dag" }, { "color": "yellow", "bold": true, "text": " " }, { "color": "green", "bold": true, "text": "& " }, { "color": "blue", "bold": true, "text": "Natt" }, { "color": "white", "text": " En offisiell server for " }, { "color": "dark_green", "text": "Level Up Community" }, { "color": "white", "text": "." } ], "text": "" }, "clean": { "extra": [ { "color": "yellow", "bold": true, "text": "Dag" }, { "color": "yellow", "bold": true, "text": " " }, { "color": "green", "bold": true, "text": "& " }, { "color": "blue", "bold": true, "text": "Natt" }, { "color": "white", "text": " En offisiell server for " }, { "color": "dark_green", "text": "Level Up Community" }, { "color": "white", "text": "." } ], "text": "" }, "html": { "extra": [ { "color": "yellow", "bold": true, "text": "Dag" }, { "color": "yellow", "bold": true, "text": " " }, { "color": "green", "bold": true, "text": "& " }, { "color": "blue", "bold": true, "text": "Natt" }, { "color": "white", "text": " En offisiell server for " }, { "color": "dark_green", "text": "Level Up Community" }, { "color": "white", "text": "." } ], "text": "" } }, "host": { "host": "90.149.222.18", "port": "25565" }, "players": { "max": 250, "online": 3 }, "version": { "version": "1.8.x-1.13.x", "protocol": 393 }, "queryinfo": { "agreement": "Ping", "processed": "0.5063" } }
So I try to get a player list. It works on some servers and not on some
Player list works
no player list
Is this a problem with minecraft or with the code?
Html motd? :D
http://1x.x.x.x/json.php?host=sg.lbsg.net&port=19132 is just bringing up json.php
Cannot Query MCPE Servers
The following is normal
http://api.mymc.xyz/json.php?host=mc.hypixel.net&port=25565
This
http://api.mymc.xyz/json.php?host=evermc.net&port=25565
There are more errors in the returned data, which prevents my project from using this aip normally.
The error is as follows
<br /> <b>Warning</b>: count(): Parameter must be an array or an object that implements Countable in <b>/www/wwwroot/api.mymc.xyz/closeTags.php</b> on line <b>9</b><br /> <br /> <b>Warning</b>: count(): Parameter must be an array or an object that implements Countable in <b>/www/wwwroot/api.mymc.xyz/closeTags.php</b> on line <b>10</b><br /> { "status": "Online", "motd": {...........
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.