//Plugin unloaded void Unloaded() { foreach (var player in BasePlayer.activePlayerList) { OnPlayerDisconnected(player); } timer.Once(5, () => { _mySql.CloseDb(_mySqlConnection); _mySqlConnection = null; }); }
void Unloaded() { sqlLibrary.CloseDb(sqlConnection); }
void Unload() { // close the database connection on unload _mySql.CloseDb(_mySqlConnection); }
private void CloseConnection(Connection sqlConnection) { _mySql.CloseDb(sqlConnection); }