Deprecate the stream operator

This commit is contained in:
Arokha Sieyes
2020-02-12 17:26:44 -05:00
committed by Leshana
parent c8a8987610
commit 47ccc655db
762 changed files with 4492 additions and 4464 deletions

View File

@@ -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"