Seznam hlasů serveru
GEThttps://api.craftbook.cz/votes/{ID_SERVERU}
200 Server odpovídá.
{
"pozice_serveru": 2,
"celkove_hlasy": 3,
"last_vote": [
{
"name": "Lukasdou",
"date": "30.03:2023 02:20"
}
],
"hlasy": [
{
"type": "1",
"name": "Fallenkoo__",
"date": "30.03:2023 02:16"
},
{
"type": "1",
"name": "Simon_556",
"date": "30.03:2023 02:18"
},
{
"type": "1",
"name": "Lukasdou",
"date": "30.03:2023 02:20"
}
]
}
TOP 5/10/20 Hlasujících
GEThttps://api.craftbook.cz/top-votes/{$1}/{ID_SERVERU}
{$1} Počet odpovědí 5/10/20.
200 Server odpovídá.
{
"top_voters": [
{
"name": "test",
"value": "2",
"last_vote": "30.03:2023 03:21"
},
{
"name": "test",
"value": "2",
"last_vote": "30.03:2023 03:21"
}
]
}
Seznam hlasů specifického hráče
GEThttps://api.craftbook.cz/player/{ID_SERVERU}/{NAZEV_HRÁČE}
200 Server odpovídá.
{
"total_votes": 1,
"last_vote": [
{
"name": "Fallenkoo__",
"date": "30.03:2023 02:16"
}
],
"next_vote": 1694168340,
"votes": [
{
"type": "1",
"name": "Fallenkoo__",
"date": "30.03:2023 02:16"
}
]
}
Zobrazit komentáře serveru
GEThttps://api.craftbook.cz/comment/{ID_SERVERU}/{$1}
200 Server odpovídá.
{$1} Přidej GET "last" pro zobrazení posledního komentáře.
Informace o herním serveru
GEThttps://api.craftbook.cz/info/{ID_SERVERU}
200 Server odpovídá.
{
"status": "Online",
"motd": {
"ingame": {
"extra": [
{
"color": "gray",
"text": "§e§lWardenMC "
},
{
"color": "gray",
"text": "§7| §fNově otevřeno!\n§7Nejlepší Survival"
}
],
"text": ""
},
"clean": {
"extra": [
{
"color": "gray",
"text": "§e§lWardenMC "
},
{
"color": "gray",
"text": "§7| §fNově otevřeno!\n§7Nejlepší Survival"
}
],
"text": ""
},
"html": {
"extra": [
{
"color": "gray",
"text": "§e§lWardenMC "
},
{
"color": "gray",
"text": "§7| §fNově otevřeno!\n§7Nejlepší Survival"
}
],
"text": ""
}
},
"host": {
"host": "mc.wardenmc.eu",
"port": "25565"
},
"players": {
"max": 100,
"online": 4
},
"version": {
"version": "1.8.x-1.19.x",
"protocol": 761
},
"queryinfo": {
"agreement": "Ping",
"processed": "0.0307"
}
}