SQLStats

SQLStats 1.0.7

Updated OnItemCraftFinished hook args
* Fix for error Failed to call hook OnCollectiblePickup(CollectibleEntity, BasePlayer): System.NullReferenceException: Object reference not set to an instance of an object
Correctly save player names to database. This solves following issues on SQLRanks plugin:
  • Players without clan having a name which begins with [TAG] treated as members of TAG clan.
  • Issue when having setting
    "enableClanTagging": false,
    on Clans plugin preventing to log data to clan.
  • Updated deprecated hook 'OnPlayerInit' to proper one.
  • New setting `PreservePlayersTable` to fully clear `stats_player` table if needed, preserving by default.
  • Like
Reactions: regr3tti
  • Introduced new config
    Code:
    WipeStatsOnMapChange
    which does exactly what it says. Allows you to prevent wiping stats on map change. Default value is 1, meaning it will wipe stats on map change.
  • Removed useless and harmless debug message from console, spams like hell on populated servers.
  • Like
Reactions: Corrosive
  • Minor fixes, destoyed doors/gates/fences data support.
  • SQL script for doors support:
    Code:
    -- Data exporting was unselected.
    -- Dumping structure for table rust.stats_player_destroy_door
    DROP TABLE IF EXISTS `stats_player_destroy_door`;
    CREATE TABLE IF NOT EXISTS `stats_player_destroy_door` (
       `id` bigint(20) NOT NULL AUTO_INCREMENT,
       `player` bigint(20) NOT NULL,
       `owner` bigint(20) DEFAULT NULL,
       `title` varchar(128) NOT NULL,
       `date` datetime NOT NULL,
       `weapon` varchar(128) DEFAULT NULL,
       `x` int(11) DEFAULT NULL,
       `z` int(11) DEFAULT NULL,
       `grid` varchar(5) DEFAULT NULL,
       PRIMARY KEY (`id`)
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  • Like
Reactions: Corrosive