mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
chore(server/players): Removed unused imports & misc debug logs
This commit is contained in:
1 parent
b9fc51e61d
commit
378830245d
1 file changed
+2
-11
@@ -1,18 +1,10 @@
|
|||||||
import { generatePhoneNumber, getPlayer, getSource } from '../functions';
|
import { getPlayer, getSource } from '../functions';
|
||||||
import { mainLogger } from '../sv_logger';
|
import { mainLogger } from '../sv_logger';
|
||||||
import {
|
import { handlePlayerAdd, Players, PlayersByIdentifier } from './sv_players';
|
||||||
getPlayerInfo,
|
|
||||||
handlePlayerAdd,
|
|
||||||
Player,
|
|
||||||
playerLogger,
|
|
||||||
Players,
|
|
||||||
PlayersByIdentifier,
|
|
||||||
} from './sv_players';
|
|
||||||
|
|
||||||
on('playerJoining', async () => {
|
on('playerJoining', async () => {
|
||||||
const _source = getSource();
|
const _source = getSource();
|
||||||
await handlePlayerAdd(_source);
|
await handlePlayerAdd(_source);
|
||||||
mainLogger.debug(`Event Source Type: ${typeof _source}`);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Handle removing from player maps when player disconnects
|
// Handle removing from player maps when player disconnects
|
||||||
@@ -44,7 +36,6 @@ on('onServerResourceStart', async (resource: string) => {
|
|||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
const onlinePlayers: string[] = getPlayers();
|
const onlinePlayers: string[] = getPlayers();
|
||||||
for (const player of onlinePlayers) {
|
for (const player of onlinePlayers) {
|
||||||
mainLogger.debug(`Type for getPlayers: ${typeof player}`);
|
|
||||||
await handlePlayerAdd(parseInt(player));
|
await handlePlayerAdd(parseInt(player));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user