From 00377de547b4033c5c1e7e6c770dd1b85db92de4 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Sat, 27 Nov 2021 01:43:08 +0800 Subject: Make Stat next to name comma value --- features/stat_next_to_name/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/features/stat_next_to_name/index.js b/features/stat_next_to_name/index.js index 014006c..59a84f7 100644 --- a/features/stat_next_to_name/index.js +++ b/features/stat_next_to_name/index.js @@ -3,6 +3,7 @@ import Feature from "../../featureClass/class"; import soopyV2Server from "../../socketConnection"; import SettingBase from "../settings/settingThings/settingBase"; +import * as numberUtils from "../../utils/numberUtils"; class StatNextToName extends Feature { constructor() { @@ -55,7 +56,7 @@ class StatNextToName extends Feature { nameTagString += " &2[" if(stats.usingSoopyv2) nameTagString += "&d⚝&2" if(stats.exists && stats[this.statsThing]){ - nameTagString +=stats[this.statsThing].toFixed(this.decimalPlaces) + nameTagString += numberUtils.numberWithCommas(stats[this.statsThing].toFixed(this.decimalPlaces)) }else{ nameTagString += "?" } -- cgit