mirror of
https://github.com/AleziaKurdis/Overte-community-apps.git
synced 2025-04-06 02:33:26 +02:00
Reset script on user disconnect.
Signed-off-by: Armored Dragon <publicmail@armoreddragon.com>
This commit is contained in:
parent
ab4934e598
commit
721075b34b
1 changed files with 2 additions and 0 deletions
|
@ -16,6 +16,8 @@ const logs = (info) => console.log("[NAMETAGS] " + info);
|
|||
|
||||
// New user connected
|
||||
AvatarManager.avatarAddedEvent.connect(reset);
|
||||
// User disconnected
|
||||
AvatarManager.avatarRemovedEvent.connect(reset);
|
||||
|
||||
function reset() {
|
||||
if (!visible) return;
|
||||
|
|
Loading…
Reference in a new issue