#JsonFileWatcher

3 messages · Page 1 of 1 (latest)

warped lion
#

here are two files that I created to check my json files and when changed it behaves as live. But for some reason I can only stop the 1st JsonWatcher, the others just won't stop.

[19:31:42 INFO]: [skJson] JsonWatcher registered with id: 88a76433-e69a-47f3-8111-e16595f23d24 for file (plugins\raw\test2.json)
[19:31:42 INFO]: [skJson] JsonWatcher registered with id: 5e6e4dd7-38c5-4413-9a72-790c562e9230 for file (plugins\raw\test.json)
[19:31:42 INFO]: [AsyncJsonWatcher] File Modified: plugins\raw\test2.json, Watcher ID: 88a76433-e69a-47f3-8111-e16595f23d24
[19:31:42 INFO]: [AsyncJsonWatcher] Changed json from: {{"A":"B","File2":"ALOL","Akame Ga Kill":true}=plugins\raw\test2.json}
[19:31:42 INFO]: [skJson] JsonWatcher registered with id: d7b33b28-e793-4d4f-ad0e-f9509719741f for file (plugins\raw\test3.json)
[19:31:42 INFO]: [AsyncJsonWatcher] File Modified: plugins\raw\test.json, Watcher ID: 5e6e4dd7-38c5-4413-9a72-790c562e9230
[19:31:42 INFO]: [AsyncJsonWatcher] Changed json from: {{"A":"B","NUM1":1,"array":[1,2,3,4,5,false,true]}=plugins\raw\test.json}
[19:31:42 INFO]: 20, 20, 20.01 and 20
[19:31:42 INFO]: [AsyncJsonWatcher] File Modified: plugins\raw\test3.json, Watcher ID: d7b33b28-e793-4d4f-ad0e-f9509719741f
[19:31:42 INFO]: [AsyncJsonWatcher] Changed json from: {{"TEST":"TEST"}=plugins\raw\test3.json}

The ids are right too so I don't understand what's going on

[19:31:42 INFO]: [Skript] Finished loading.
> !unlink json "test3"
[19:33:45 INFO]: executing 'unlink json "test3"'
[19:33:45 INFO]: plugins\raw\test3.json
[19:33:45 INFO]: [skJson] JsonWatcher id d7b33b28-e793-4d4f-ad0e-f9509719741f Unregistered successfully!
> !unlink json "test2"
[19:33:47 INFO]: executing 'unlink json "test2"'
[19:33:47 INFO]: plugins\raw\test2.json
[19:33:47 INFO]: [skJson] JsonWatcher id 88a76433-e69a-47f3-8111-e16595f23d24 Unregistered successfully!
> !unlink json "test"
[19:33:49 INFO]: executing 'unlink json "test"'
[19:33:49 INFO]: plugins\raw\test.json
[19:33:49 INFO]: [skJson] JsonWatcher id 5e6e4dd7-38c5-4413-9a72-790c562e9230 Unregistered successfully!
>

Thanks for any advice

First class: https://pastebin.com/raw/SdsAQmab
Second class: https://pastebin.com/raw/nGC9R1fn

static ruinBOT
#

This post has been reserved for your question.

Hey @warped lion! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.