aboutsummaryrefslogtreecommitdiff
path: root/features/hud
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-05-28 21:29:35 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-05-28 21:29:35 +0800
commit51cdd4ca4ea64e1a9a67b99c274693a54f7f535d (patch)
tree38ad597119c2b38a69ee26822769075c9c5cdacc /features/hud
parent0985bdd291c3b2889c1e2fbc20f51cd4d7bc1e96 (diff)
downloadSoopyV2-51cdd4ca4ea64e1a9a67b99c274693a54f7f535d.tar.gz
SoopyV2-51cdd4ca4ea64e1a9a67b99c274693a54f7f535d.tar.bz2
SoopyV2-51cdd4ca4ea64e1a9a67b99c274693a54f7f535d.zip
+ asd
Diffstat (limited to 'features/hud')
-rw-r--r--features/hud/index.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/features/hud/index.js b/features/hud/index.js
index 947fef0..db12055 100644
--- a/features/hud/index.js
+++ b/features/hud/index.js
@@ -252,10 +252,11 @@ class Hud extends Feature {
this.lastSwappedPet = Date.now()
})
this.registerChat("&r&aYour &r${pet} &r&alevelled up to level &r&9${level}&r&a!&r", (pet, level) => {
- this.petElement.setText("&6Pet&7> &7[Lvl " + (level || "??") + "] " + pet)
- this.petText = "&6Pet&7> &7[Lvl " + (level || "??") + "] " + pet
-
- this.lastSwappedPet = Date.now()
+ if (this.petText.split("] ")[1] === pet) {
+ this.petElement.setText("&6Pet&7> &7[Lvl " + (level || "??") + "] " + pet)
+ this.petText = "&6Pet&7> &7[Lvl " + (level || "??") + "] " + pet
+ this.lastSwappedPet = Date.now()
+ }
})
this.registerSoopy("apiLoad", this.apiLoad)