- Fougerite Compatibility
- 1.0.5
- Plugin's Engine
- Jint2 (Jint)
This is an updated version of the PlayerLog plugin that is included with JintPlugin. It's actually a good example now, not a hastily thrown-together hack. The new version demonstrates the new Jint engine supporting Javascript semantics better than the one in Magma.
- a Javascript PlayerLogData object is defined in global and instanced inside a hook, passing a Player object and timestamp to initialize its properties.
- the object is converted to JSON and logged to file, or to Web.
- a Javascript PlayerLogData object is defined in global and instanced inside a hook, passing a Player object and timestamp to initialize its properties.
- the object is converted to JSON and logged to file, or to Web.
JavaScript:
{"name":"MC MC","gid":"76561198027079365","ip":"75.83.221.187","loc":"(5691.5, 419.6, -4028.4)","ts":1412214100,"event":"connect","first":false,"camp":false}
{"name":"MC MC","gid":"76561198027079365","ip":"255.255.255.255","loc":"(-6903.5, 432.3, -295.5)","ts":1412223195,"event":"disconnect","first":false,"camp":false}