-
Method Summary
void
Clears all archives from temporary folder.
void
Removes saved archives of planet, because it was unloaded.
Compresses planet folders to one archive.
void
Shutdowns web world downloader server.
Compresses planet folders to archive in temporary folder,
then generates unique token and returns link to download world.
Methods inherited from interface ua.mcchickenstudio.opencreative.managers.Manager
getName
Methods inherited from interface ua.mcchickenstudio.opencreative.managers.Startable
start
-
Method Details
-
uploadPlanet
Compresses planet folders to archive in temporary folder,
then generates unique token and returns link to download world.
- Parameters:
planet - planet, that was requested to download.
player - player, who requested.
- Returns:
- string of link.
-
compressPlanetToArchive
Compresses planet folders to one archive.
- Parameters:
planet - planet to compress folders.
session - download session.
- Returns:
- compressed archive.
-
clearArchives
void clearArchives(@NotNull
@NotNull Planet planet)
Removes saved archives of planet, because it was unloaded.
- Parameters:
planet - planet to remove archive.
-
clearAllArchives
void clearAllArchives()
Clears all archives from temporary folder.
-
shutdown
void shutdown()
Shutdowns web world downloader server.
- Specified by:
shutdown in interface ShutDownable