![]() ![]() Returns a list of installed plugins on the serverĪll notable changes to this project will be documented here. The check() method return an array with the following properties: Key You can use the following methods after check() method: Method Returns a list of installed mods on the server Returns the maximum number of players that can enter the server Returns the server hostname or IP address Returns true if the server is online else false The check() method return an object with the following properties: Key The check() method has 4 optional parameters: #īoolean value to find informations on servers that uses a version older than Minecraft 1.7 Please note that this library does resolve SRV records too. If you want to get ping info from a server that uses a version older than Minecraft 1.7, You can install this library with composer:Ĭomposer require lukasss93/minecraft-server-status Using MCPing Using Query allows to request a full list of servers' plugins and players, however this method is more prone to breaking, so if you don't need all this information, stick to the ping method as it's more reliable. This method uses GameSpy4 protocol, and requires enabling query listener in your server.properties like this: N.B.: this method doesn't work with Minecraft: Bedrock Edition It uses TCP protocol on the same port as you would connect to your server an optional parameter IsOld17 which can be used to query servers on version 1.6 or older. This is easier to use and doesn't require extra setup on server side. Ping protocol was added in Minecraft 1.7 and is used to query the server for minimal amount of information (hostname, motd, icon, and a sample of players). There are two methods of retrieving information about a Minecraft server. ⚠ Please do not create issues when you are unable to retrieve information from a server, unless you can prove that there is a bug within the library. If you would like to implement our API into your service, head over to the API documentation page to read up on the API routes.This library can be used to check Minecraft Servers Status for some basic information. All of our services are open source, and available for you to view on our GitHub organization. We also utilize Redis to store and retrieve cached statuses extremely fast. Our API is built from the ground up using Go - a high performance programming language - and we directly communicate with the Minecraft server using the official networking protocol. There are two methods of retrieving information about a Minecraft. Please do not create issues when you are unable to retrieve information from a server, unless you can prove that there is a bug within the library. The icon route allows you to embed your server's icon directly into your website without ever having to worry about updating it, and the widget route shows your users a preview of your server without them having to open the game. This library can be used to check Minecraft Servers Status for some basic information. While statuses are our main focus, we also offer additional routes like retrieving an server icon and a generated status widget. In addition to just retrieving the Minecraft server status, we also use the query protocol for Java Edition servers, allowing us to get extra information about the servers like plugins and software information. This allows you to embed this information on your website exactly as you see it in-game. We also offer many features that our competitors do not, such as formatting options for the MOTD, version name, and sample player names. This duration was entirely unnecessary, which is why we only cache statuses for up to 1 minute from the last retrieval. Some of our competitors use unnecessarily long cache times, meaning it could take up to 5 minutes to get the up-to-date status of any server you requested. To this day, we serve an average of 150K unique users, 130 million requests, and about 1 terabyte of data per month. While working with other existing services, I realized the many missing features that developers could use which inspired me to start my own service. This service was inspired by but built from the ground up with speed and reliability in mind. We also offer an API for developers to programmatically retrieve the status of Minecraft servers, with a very lenient cache duration of only 1 minute. Mcstatus.io is an online tool for retrieving the status of any Java Edition or Bedrock Edition Minecraft server. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |