MCPcopy Create free account
hub / github.com/MCSLTeam/MCSL2 / readGlobalServerConfig

Function readGlobalServerConfig

MCSL2Lib/utils.py:44–46  ·  view source on GitHub ↗

读取全局服务器配置, 返回的是一个list

()

Source from the content-addressed store, hash-verified

42
43
44def readGlobalServerConfig() -> list:
45 """读取全局服务器配置, 返回的是一个list"""
46 return loads(readFile(r"MCSL2/MCSL2_ServerList.json"))["MCSLServerList"]
47
48
49def _normalize_server_config(value: Any) -> Any:

Callers 7

autoStartServersMethod · 0.90
initializeMethod · 0.90
__init__Method · 0.90
refreshServersMethod · 0.90
scrollAreaProcessorMethod · 0.90
deleteServer_Step1Method · 0.90

Calls 1

readFileFunction · 0.85

Tested by

no test coverage detected