New backup 2025-10-09 14:15:01
This commit is contained in:
parent
eb7b068960
commit
7b14765360
1 changed files with 11 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
(defpoll servers_status :initial '{"online": true,"kind":"Java","status":{"players":{"online":0,"max":0,"sample":null},"version":{"name":"version","protocol":0},"motd":"Message of the day","latency":0,"icon":""}}'
|
||||
(defpoll servers_status :initial '[{"online": true,"kind":"Java","status":{"players":{"online":0,"max":0,"sample":null},"version":{"name":"version","protocol":0},"motd":"Message of the day","latency":0,"icon":""},"address":"ip.addre.ss"}]'
|
||||
:interval "21600s"
|
||||
'scripts/home/mcstatus')
|
||||
|
||||
|
@ -15,9 +15,17 @@
|
|||
|
||||
(defwidget mcstatus [json]
|
||||
(box
|
||||
:orientation 'v'
|
||||
(for server in json
|
||||
(label
|
||||
:text "${server.address}"
|
||||
(box
|
||||
:orientation 'v'
|
||||
(label
|
||||
:text "${server.address}"
|
||||
)
|
||||
(label
|
||||
:text "${replace(server.status.motd,'§.','')}"
|
||||
:truncate true
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue