mirror of
https://github.com/imayushsaini/Bombsquad-Ballistica-Modded-Server.git
synced 2025-10-20 00:00:39 +00:00
19 lines
No EOL
329 B
Python
19 lines
No EOL
329 B
Python
# Released under the MIT License. See LICENSE for details.
|
|
|
|
|
|
settings={}
|
|
|
|
def get_setting():
|
|
global settings
|
|
if settings=={}:
|
|
f=open("setting.json","r")
|
|
dat=json.loads(f.read())
|
|
settings=dat
|
|
f.close()
|
|
return settings
|
|
|
|
def commit():
|
|
global settings
|
|
f=open("setting.json",'w')
|
|
json.dump(setting,f,indent=4)
|
|
f.close() |