Check if player data is valid

This commit is contained in:
Vortrex
2022-05-05 11:31:10 -05:00
parent f8cd47d8be
commit 6da66c533e

View File

@@ -322,6 +322,10 @@ function getPlayerInfoCommand(command, params, client) {
// ===========================================================================
function playerChangeAFKState(client, afkState) {
if(!getPlayerData(client)) {
return false;
}
getPlayerData(client).afk = afkState;
updateAllPlayerNameTags();
}