Mafia Connected support
This commit is contained in:
@@ -468,4 +468,18 @@ function togglePauseSavingToDatabase() {
|
||||
getServerConfig().pauseSavingToDatabase = !getServerConfig().pauseSavingToDatabase;
|
||||
}
|
||||
|
||||
// ===========================================================================
|
||||
|
||||
function createAccountDataForNewServer(serverId) {
|
||||
let dbConnection = connectToDatabase();
|
||||
let dbQuery = false;
|
||||
if(dbConnection) {
|
||||
dbQuery = queryDatabase(dbConnection, `SELECT * FROM acct_main`);
|
||||
if(dbQuery) {
|
||||
let dbQueryString = `INSERT INTO acct_svr (acct_svr_acct, acct_svr_svr) VALUES (${accountDatabaseId}, ${serverId})`;
|
||||
quickDatabaseQuery(dbQueryString);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ===========================================================================
|
||||
Reference in New Issue
Block a user