More cleanup on quit

This commit is contained in:
Vortrex
2022-07-17 04:24:04 -05:00
parent 140749e8c0
commit 25e79b26d6

View File

@@ -123,6 +123,22 @@ function onPlayerQuit(event, client, quitReasonId) {
}); });
//messagePlayerNormal(null, `👋 ${getPlayerName(client)} has left the server (${reasonText})`, getColourByName("softYellow")); //messagePlayerNormal(null, `👋 ${getPlayerName(client)} has left the server (${reasonText})`, getColourByName("softYellow"));
if (isPlayerFishing(client)) {
stopFishing(client);
}
if (isPlayerInPaintBall(client)) {
stopPaintBall(client);
}
if (isPlayerOnJobRoute(client)) {
stopJobRoute(client);
}
if (isPlayerWorking(client)) {
stopWorking(client);
}
if (isPlayerLoggedIn(client)) { if (isPlayerLoggedIn(client)) {
savePlayerToDatabase(client); savePlayerToDatabase(client);
resetClientStuff(client); resetClientStuff(client);