This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Waitdev_'s profile picture

sInfo - Server Information Grabber

Started by Waitdev_, 21 January 2016 - 12:11 AM
Waitdev_ #1
Posted 21 January 2016 - 01:11 AM
sInfo - Server Information Grabber

(Slight WIP)

What is it?
sInfo grabs info of any server and displays it in color.

What does it grab?
Online/offline, players online & max players, Minecraft version (not sure if it works properly), last online if offline (WIP - looks a bit screwed) and the MOTD in closest to correct colour :D/>

Credits:
ElvishJerrecco - JSON API (v2)
MCAPI

Planned/possible features
Planned
~ Fix timestamp
Possible
+ Make API (if people really want it)

Download:
pastebin run dEZn5mDe

Screenie:

(see that bungeecord thing? yeah, that's what went wrong. the server is 1.7.10)
Actual server in list:


Also, this works with any server.

Suggestions? Feedback? Bugs? Anything i got wrong (like i mostly do in posts)? Drop a reply!
Lupus590 #2
Posted 21 January 2016 - 09:43 AM
looks good, may be useful in single player if you want to see if your favourite server is back up after a crash
SquidDev #3
Posted 21 January 2016 - 04:10 PM
Its pretty cool. I like the way you've got the colouring correct.

This API allows also getting the players who are currently online and the server's logo. It would be pretty cool if those could also be displayed (though for the image you'd have to write a PNG decoder which would be pretty hard). I could imagine listing currently online players would be very useful.

Edit: Bit of googling found this pure-lua PNG decoder. Don't know if it works though
Edited on 21 January 2016 - 03:13 PM
DannySMc #4
Posted 21 January 2016 - 09:22 PM
Thanks for using my server as an example XD but this program is really cool!
TheOddByte #5
Posted 21 January 2016 - 09:33 PM
Cool program, and as you put in your post I'd really want to see an API for this, it would be cool to set it up so that you can keep track of multiple servers at once.
This way, if a server goes "dead", eg that you're the only one on the server, you can easily check if there are people on other servers.
Waitdev_ #6
Posted 21 January 2016 - 09:51 PM
Thanks for using my server as an example XD but this program is really cool!
did it cuz why not advertise my favourite server xD

(ontopic)
I've made a list of everyone's suggestions, i'll add them when eventually ;3
and trust me, i actually mean soon this time. unlike CloudPaint which 98% of computercraft have probably forgotten about :P/>
Edited on 21 January 2016 - 08:57 PM
DannySMc #7
Posted 21 January 2016 - 10:04 PM
Thanks for using my server as an example XD but this program is really cool!
did it cuz why not advertise my favourite server xD

Well thank you :D/>