You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -11,26 +12,29 @@ This library can be installed by issuing the following command:
11
12
composer require dev-lancer/minecraft-status
12
13
```
13
14
14
-
## Differences between Ping and Query
15
+
## Differences between MinecraftJavaStatus and MinecraftJavaQuery
15
16
16
-
### Ping
17
-
Ping uses the TCP protocol to communicate with the Minecraft server in the java edition and bedrock edition, it uses the port on which the server is running.
17
+
### MinecraftJavaStatus
18
+
MinecraftJavaStatus uses the TCP protocol to communicate with the Minecraft server in the java edition and bedrock edition, it uses the port on which the server is running.
18
19
Ping provides the most necessary information (hostname, motd, favicon, and a sample of players).
19
20
Thanks to its simplicity, it does not require any configuration on the server side, communication works with servers from version 1.7 and above.
20
21
21
-
To communicate with a server which has a version lower than 1.7, use the `PingPreOld17` class
22
+
To communicate with a server which has a version lower than 1.7, use the `MinecraftJavaPreOld17Status` class
22
23
23
-
### Query
24
-
Query uses GameSpy 4 protocol for communication,
24
+
For bedrock edition servers use class `MinecraftBedrockStatus`
25
+
26
+
27
+
### MinecraftJavaQuery
28
+
MinecraftJavaQuery uses GameSpy 4 protocol for communication,
25
29
so you should start listening in the server properties.
26
30
Query allows you to request more information about the server,
27
31
but has more security vulnerabilities.
28
32
29
33
## Usage
30
34
31
-
### Query
35
+
### Minecraft Java Edition server with Query
32
36
33
-
Example: [Query](examples/query.php)
37
+
Example: [MinecraftJavaQuery](examples/query.php)
34
38
35
39
This method uses GameSpy4 protocol, and requires enabling `query` listener in your `server.properties` like this:
36
40
@@ -39,7 +43,7 @@ This method uses GameSpy4 protocol, and requires enabling `query` listener in yo
39
43
40
44
```php
41
45
<?php
42
-
use \DevLancer\MinecraftStatus\Query;
46
+
use \DevLancer\MinecraftStatus\MinecraftJavaQuery;
0 commit comments