Closed ago1024 closed 3 years ago
The ServerPacks interface has
void addServerPack(Path path, ServerPackOptions... options); void addServerPack(byte[] data, ServerPackOptions... options); void addServerPack(String name, byte[] data, ServerPackOptions... options);
(1) and (2) send a pack with the SHA-1 hash as id. (3) uses a fixed name and is used for sending the packs with the generated map image.
Sending a file with a fixed name is currently not possible.
The change adds the new method to send a pack from a file with a fixed name.
void addServerPack(String name, Path path, ServerPackOptions... options);
The ServerPacks interface has
(1) and (2) send a pack with the SHA-1 hash as id. (3) uses a fixed name and is used for sending the packs with the generated map image.
Sending a file with a fixed name is currently not possible.
The change adds the new method to send a pack from a file with a fixed name.