CSMM Updated!
Features:
- Custom hooks support a new event: logLine. You must configure a string to search for (or a regex for advanced users), every log line that matches your configured search will set off this hook. While the string search is required for the logLine event, it is optional for the other events.
- Custom hooks now have a 'cooldown' parameter.
- There is now an on/off switch for CSMM in the basic server settings. This checkbox can disable all csmm modules for your server without you losing your configs
Bug fixes/small changes:
-You can now see your donator status on the 'your profile' page. It is also listed in the basic server settings of your server.
- Fixed a property accessor in historicalInfo#deleteMap which was causing the module to not load properly
- Cleaned up log messages for (dis)connected messages
- Cache donator status in Redis to limit usage of discord API
- Mark servers that haven't been online for a long time as 'inactive'. This will unload a lot of unnecessary modules that are eating up RAM
- Fix system stats collection
- Ingame command $balance now has 2 aliases: $bal and $wallet
- Fix initialization of customHooks module for newly created servers
- MOTD module removed
- Added some bugs so future me wont get bored :bug:
----
Psst, want to know what data is available in your custom commands/hooks? Here's the current data object that is passed:
https://hastebin.com/uguqoxapuq.json
Please note that it's still not a definitive list, some stuff may still be removed or added. So some examples of possible variables:
${date}, ${time}, ${player.name}, ${server.ip}, ${player.positionX}, ...