Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Commit

Permalink
update scripts/JS/@modules/handlers/entity/Player.Class.js
Browse files Browse the repository at this point in the history
  • Loading branch information
VoxlDevv committed Jun 10, 2023
1 parent 8c9eaad commit 874d876
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/JS/@modules/handlers/entity/Player.Class.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ class PlayerClass {
/**
* Check player if online
* @returns {Boolean}
* @example isOnline(targetObj);
* @example isOnline("JustSky001");
*/
isOnline(target) {
return (
this.getAllPlayers().find((name) => name === target.nameTag) !== undefined
this.getAllPlayers().find((name) => name === target) !== undefined
);
}

Expand Down

0 comments on commit 874d876

Please sign in to comment.