lambda icon indicating copy to clipboard operation
lambda copied to clipboard

StashLogger: Add logToFile option

Open Baitinq opened this issue 2 years ago • 3 comments

This patch adds the logToFile option in the StashLogger module. This option, which is enabled by default, appends all the newfound stashes to a JSON file ($lambda_folder/stash_logger.json).

This is useful for when you are afk stash hunting and you would like to keep a log of all the found stashes :)

Baitinq avatar Jan 19 '23 14:01 Baitinq

Cool idea, should be saved in a folder named "stash-logger" and have separate files for very server using the brand. Otherwise it would combine indistinguishable the location from different servers.

Avanatiker avatar Feb 02 '23 03:02 Avanatiker

@Avanatiker should be done :)

Baitinq avatar Feb 02 '23 23:02 Baitinq

After finding the first stash it doesnt log any other stashes.

Ive set up a small test on a local server, 2 locations with 5+ shulkers each, the first one will get found everytime but the second one doesnt get logged as a stash.

Also, once the first json was created the stash logger didnt seem to create any new json files.

Getting "FileAlreadyExistsException".

Also, I'd suggest adding a new default folder to the FolderUtils for the stash logger if you want this to be a mainline feature. Maybe someone else can chime in if there is something else.

P529 avatar May 02 '23 00:05 P529