mirror of
https://github.com/PlaceholderAPI/Javascript-Expansion.git
synced 2025-05-23 18:42:44 +00:00
Data storage saving clarification
parent
e5c0ebd9fd
commit
a271546b3c
@ -74,7 +74,7 @@ Produces:  when t
|
||||
|
||||
## Storing Data
|
||||
|
||||
Storing data from within the placeholder script is quite easy. When a placeholder script is called, a `Data` object is passed to it. Whenever the script modifies the object, it is modified in Javascript-Expansion as well, and then saved to a data file.
|
||||
Storing data from within the placeholder script is quite easy. When a placeholder script is called, a `Data` object is passed to it. Whenever the script modifies the object, it is modified in Javascript-Expansion as well, and then saved to a data file when the expansion unloads.
|
||||
|
||||
Here is an example script that stores how many times a placeholder is viewed.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user