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

Function generateLevelNameList

MCSL2Lib/ServerControllers/serverUtils.py:216–222  ·  view source on GitHub ↗
(serverName, levelName)

Source from the content-addressed store, hash-verified

214
215
216def generateLevelNameList(serverName, levelName):
217 if isBedrockServer(serverName):
218 return [f"worlds/{levelName}", "worlds/nether", "worlds/end"]
219 elif isBungeeCordServer(serverName):
220 return
221 else:
222 return [levelName, f"{levelName}_nether", f"{levelName}_the_end"]
223
224
225def backupSaves(serverConfig: ServerVariables, parent):

Callers 1

backupSavesFunction · 0.85

Calls 2

isBedrockServerFunction · 0.85
isBungeeCordServerFunction · 0.85

Tested by

no test coverage detected