Logs player connection time and active time

Supported Games
GameServerKingsGameServerKings
depends on

This plugin will log all player connection and afk time activity. It is mostly for developers that wish to use this data in their plugins.

Commands

  • datalogging.activity {steamId} will reply a list of activity for the player. Such as when they connected, disconnected, became AFK or active.

  • datalogging.activetime {steamId} will reply a summary of activity time for the player. Such as total time connected, time active.

datalogging.allactivity will reply a list of activity time and connected time for all players.

Localization

Developer API

JObject API_GetAllActivity(startDate)

Returns a JObject list of all player activity. startDate is an optional datetime parameter.

int API_GetActiveTime(string playerId)

Returns an int value of seconds that the player has been active on the server.

int API_GetConnectedTime(string playerId)

Returns an int value of seconds the player has been connected to the server.

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.