Check Hosts key via the hub in Developer Help
|
|
Okay if possible I would like to keep name-calling/flaming dowm today. Please, only helpful comments.
I need a way to make a code that goes to the hub checks all the servers and then reports back to the game and lists all the keys. The system I'm trying to figure out is how to make it so only a specific host can host the game, by using one source. The reason I need to do this, is because a few people have gained the old source and are hosting unofficial servers and I need a way to code it in the official source to make it basically kill the unofficial servers.
I'm almost positive this is possible. Thank you.
This might clear it up a little:
proc/check() var/http[]=world.Export("http://www.byond.com/hub/SadoSoldier.PublicPager?tab=index") if(http&&http["CONTENT"]) if(http["CONTENT-TYPE"]!="text/plain") world<<"\red Game could not be found." else var/savefile/F=new F.ImportText("/",file2text(http["CONTENT"])) world<<"\red Retrieving information..."
F.cd="/worlds" for(var/Z in F.dir) F.cd="[Z]" if(F.host_key == "SadoSoldier") world<<"\green [F] has been allowed" ..() else world<<"\red [F] has been deleted" del(F)
|
Not much, but some.
|