- Data Logging0.*
This plugins stores a log of all player kills and deaths, so that you can use this data for any purposes within your own plugins.
Note this only records kills/deaths where a player is involved, and does not include suicides.
Commands
datalogging.kills {steamId}command will give a list of kills for the specified player.datalogging.deaths {steamId}command will give a list of deaths for the specified player.datalogging.pvp {steamId}command will show a summary of players kills and deaths.
Developer API
JObject API_AllPVPData(startDate, endDate)
Returns a JObect for all PVP kills and deaths. The startDate and endDate parameters are optional.
int API_TotalKills(string playerId)
Returns an int count of the number of kills a player has.
int API_TotalDeaths(string playerId)
Returns an int count of the number of deaths a player has.
double API_PercentageNakedKills(string playerId)
Returns a double representing the percent of nakes the player has killed (for example if 1 out of the last 5 players they killed was a naked, then 0.20 would return).
int API_GetKillStreak(string playerId)
Returns an int of the players kill streak.
bool API_Helper_IsNaked(BasePlayer player)
Returns a bool (true/false) as to whether this player is a "naked".
JObject API_GetPlayerKills(string playerId)
Returns a JObject list of all the players kills.
JObject API_GetPlayerDeaths(string playerId)
Returns a JObject list of all the players deaths.
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.

