[DiscordArchive] What does on save (event 25) do and how often does it save?
[DiscordArchive] What does on save (event 25) do and how often does it save?
Archived author: Aldori • Posted: 2024-03-19T18:27:24.046000+00:00
Original source
What does on save (event 25) do and how often does it save?
Archived author: Honey • Posted: 2024-03-19T18:29:35.941000+00:00
Original source
Events do only what you code inside the function you register with them.
The core saves players regularly and under certain circumstances, e.g. on logout, when typing `.save` (rate-limited) and after a time determined in the config, too.
![[Image: image0.gif?ex=690c4068&is=690aeee8&hm=94...d83152a1c&]](https://cdn.discordapp.com/attachments/448835144564867094/1219714512177856512/image0.gif?ex=690c4068&is=690aeee8&hm=94b19f1d45f575070ca12d8042802fea4c935646414557cbaa6f971d83152a1c&)
Archived author: Honey • Posted: 2024-03-19T18:30:00.954000+00:00
Original source
And no need to ping me btw.
![[Image: image0.gif?ex=690c4068&is=690aeee8&hm=94...d83152a1c&]](https://cdn.discordapp.com/attachments/448835144564867094/1219714512177856512/image0.gif?ex=690c4068&is=690aeee8&hm=94b19f1d45f575070ca12d8042802fea4c935646414557cbaa6f971d83152a1c&)
![[Image: image.png?ex=690c4238&is=690af0b8&hm=607...9131ce097&]](https://cdn.discordapp.com/attachments/448835144564867094/1219716455562481744/image.png?ex=690c4238&is=690af0b8&hm=6076bef5e409aa3f13359b1d3b2c6c3d643fa3ca63547ae17bf7a789131ce097&)
Archived author: Aldori • Posted: 2024-03-19T18:37:44.437000+00:00
Original source
Gotcha, thank you! So in my case, it will make a ping every 5 minutes to save players
![[Image: image.png?ex=690c4238&is=690af0b8&hm=607...9131ce097&]](https://cdn.discordapp.com/attachments/448835144564867094/1219716455562481744/image.png?ex=690c4238&is=690af0b8&hm=6076bef5e409aa3f13359b1d3b2c6c3d643fa3ca63547ae17bf7a789131ce097&)
Archived author: Honey • Posted: 2024-03-19T20:23:16.439000+00:00
Original source
Yeah, that's the behaviour i expect