aboutsummaryrefslogtreecommitdiff
path: root/logger.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-11-06 18:15:47 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-11-06 18:15:47 +0800
commitb33a75b2eba88c60280fcd441a5dd974cf763ab4 (patch)
tree53bd51697f69596fdcc388cdc71cc91b745f8f67 /logger.js
parentbae481562a9186cafebdde2be9ac53b93cb98885 (diff)
downloadSoopyV2-b33a75b2eba88c60280fcd441a5dd974cf763ab4.tar.gz
SoopyV2-b33a75b2eba88c60280fcd441a5dd974cf763ab4.tar.bz2
SoopyV2-b33a75b2eba88c60280fcd441a5dd974cf763ab4.zip
Added update notif, cosmetics, and unfinished museum overlay
Diffstat (limited to 'logger.js')
-rw-r--r--logger.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/logger.js b/logger.js
index ae44ae1..5782d84 100644
--- a/logger.js
+++ b/logger.js
@@ -3,7 +3,7 @@
class Logger{
constructor(){
- this.loglevel = 4 //0=none, 1=error, 2=warn, 3=info, 4=debug
+ this.loglevel = isDev()?4:2 //0=none, 1=error, 2=warn, 3=info, 4=debug
this.logToMcChat = false
this.logPrefixes = [
"[SOOPYADDONS] ",
@@ -25,4 +25,10 @@ class Logger{
}
}
+let devs = ["dc8c39647b294e03ae9ed13ebd65dd29"]
+
+function isDev(){
+ return devs.includes(Player.getUUID().toString().replace(/-/g, ""))
+}
+
export default new Logger() \ No newline at end of file