File tree Expand file tree Collapse file tree 1 file changed +18
-14
lines changed
Expand file tree Collapse file tree 1 file changed +18
-14
lines changed Original file line number Diff line number Diff line change @@ -19,26 +19,30 @@ dependencies {
1919### Server Status
2020
2121``` kotlin
22- var status
23- status = JavaServer .getStatus(" mc.hypixel.net" )
24- status = JavaServer .getStatus(
25- host = " wdsj.net" ,
26- port = 25565 ,
27- enableSrv = true
28- )
29- status = BedrockServer .getStatus(" play.easecation.net" )
30-
31- println (status)
22+ runBlocking {
23+ var status
24+ status = JavaServer .getStatus(" mc.hypixel.net" )
25+ status = JavaServer .getStatus(
26+ host = " wdsj.net" ,
27+ port = 25565 ,
28+ enableSrv = true
29+ )
30+ status = BedrockServer .getStatus(" play.easecation.net" )
31+
32+ println (status)
33+ }
3234```
3335
3436### Player Profile (Java Edition Only)
3537
3638``` kotlin
37- var pl
38- pl = Player .getProfileByName(" Aliorpse" )
39- pl = Player .getProfile(" ec042e1200ac4a249cc83eb1fab0bd88" )
39+ runBlocking {
40+ var pl
41+ pl = Player .getProfileByName(" Aliorpse" )
42+ pl = Player .getProfile(" ec042e1200ac4a249cc83eb1fab0bd88" )
4043
41- println (pl)
44+ println (pl)
45+ }
4246```
4347
4448## Java Usage
You can’t perform that action at this time.
0 commit comments