In this update I optimized the code a bit. The size of
Neon went down from
70 kb to around
61 kb and the amount of lines went from
1361 to
1318 which is pretty nice I'd say.
Here's a little bit more details on what I did:
- Turned all variables that aren't needed after the server restarts to '
RAM variables'.
- Combined all the events so that there are no longer multiple 'on join' events for example. (except '
on command' events, I couldn't get it working if I combined them into one.)
- Added functions for almost all commands, which reduced the size and the amount of lines the most.
This update also fixes some annoying bugs, like for example the 'alive' and 'dead' list being saved after server crash/reboot.
There may still be some things that could be optimized, and they will most likely be optimized in the future. I will keep optimizing the code the best I can.
I hope you like this update, and remember that if you find any bugs I would appreciate them being reported in the
Neon discord server.