mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Deprecate the stream operator
This commit is contained in:
@@ -7,13 +7,13 @@ proc/makejson()
|
||||
if(!makejson)
|
||||
return
|
||||
fdel("[jsonpath]/info.json")
|
||||
//usr << "Error cant delete json"
|
||||
//to_chat(usr, "Error cant delete json")
|
||||
//else
|
||||
//usr << "Deleted json in public html"
|
||||
//to_chat(usr, "Deleted json in public html")
|
||||
fdel("info.json")
|
||||
//usr << "error cant delete local json"
|
||||
//to_chat(usr, "error cant delete local json")
|
||||
//else
|
||||
//usr << "Deleted local json"
|
||||
//to_chat(usr, "Deleted local json")
|
||||
var/F = file("info.json")
|
||||
if(!isfile(F))
|
||||
return
|
||||
@@ -38,7 +38,7 @@ proc/makejson()
|
||||
players += "[C.fakekey];"
|
||||
else
|
||||
players += "[C.key];"
|
||||
F << "{\"mode\":\"[mode]\",\"players\" : \"[players]\",\"playercount\" : \"[playerscount]\",\"admin\" : \"[admins]\",\"time\" : \"[time2text(world.realtime,"MM/DD - hh:mm")]\"}"
|
||||
to_chat(F, "{\"mode\":\"[mode]\",\"players\" : \"[players]\",\"playercount\" : \"[playerscount]\",\"admin\" : \"[admins]\",\"time\" : \"[time2text(world.realtime,"MM/DD - hh:mm")]\"}")
|
||||
fcopy("info.json","[jsonpath]/info.json")
|
||||
|
||||
/proc/switchmap(newmap,newpath)
|
||||
@@ -73,7 +73,7 @@ proc/makejson()
|
||||
if(findtext(A,path,1,0))
|
||||
lineloc = lines.Find(A,1,0)
|
||||
lines[lineloc] = xpath
|
||||
world << "FOUND"*/
|
||||
to_world("FOUND")*/
|
||||
fdel(dmepath)
|
||||
var/file = file(dmepath)
|
||||
file << text
|
||||
@@ -89,8 +89,8 @@ obj/mapinfo
|
||||
proc/GetMapInfo()
|
||||
// var/obj/mapinfo/M = locate()
|
||||
// Just removing these to try and fix the occasional JSON -> WORLD issue.
|
||||
// world << M.name
|
||||
// world << M.mapname
|
||||
// to_world(M.name)
|
||||
// to_world(M.mapname)
|
||||
client/proc/ChangeMap(var/X as text)
|
||||
set name = "Change Map"
|
||||
set category = "Admin"
|
||||
|
||||
Reference in New Issue
Block a user