Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.
/ EggClicker Public archive

Commit fa67955

Browse files
committed
reset analytics on server start
1 parent 1a0f397 commit fa67955

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

misc/analytics.sk

+11-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,17 @@ every 10 minutes:
88
set {_joins} to {analytics::joins}
99
set {_quits} to {analytics::quits}
1010
set {_roomsBought} to {analytics::roomsBought}
11-
log "%{_time}%, %{_clicks}%, %{_eggs}%, %{_tokens}%, %{_prestiges}%, %{_instaClicks}%, %{_firstJoins}%, %{_joins}%, %{_quits}%, %{_roomsBought}%" to "analytics.log"
11+
log "%{_time}%, %{_clicks}%, %{_eggs}%, %{_tokens}%, %{_prestiges}%, %{_instaClicks}%, %{_firstJoins}%, %{_joins}%, %{_quits}%, %{_roomsBought}%" to "analytics.log"
1212
loop {analytics::*}:
1313
set {analytics::%loop-index%} to 0
1414
send "&e[Analytics] Data has been logged for &6%{_time}%&e!" to console
15-
15+
16+
on skript start:
17+
set {analytics::clicks} to 0
18+
set {analytics::eggs} to 0
19+
set {analytics::tokens} to 0
20+
set {analytics::prestiges} to 0
21+
set {analytics::firstJoins} to 0
22+
set {analytics::joins} to 0
23+
set {analytics::quits} to 0
24+
set {analytics::roomsBought} to 0

0 commit comments

Comments
 (0)