aboutsummaryrefslogtreecommitdiff
path: root/logger.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-11-21 14:54:34 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-11-21 14:54:34 +0800
commit42755196a746aeb309f6b87c48f6b2e2fc0c68cf (patch)
tree01d65e172efb2177db6d3aff1bda336daab35b2d /logger.js
parentbde207af172805c3ab2801d12a426df16a79ff0c (diff)
downloadSoopyV2-42755196a746aeb309f6b87c48f6b2e2fc0c68cf.tar.gz
SoopyV2-42755196a746aeb309f6b87c48f6b2e2fc0c68cf.tar.bz2
SoopyV2-42755196a746aeb309f6b87c48f6b2e2fc0c68cf.zip
Make cosmetics render on renderEntity instead of renderWorld
Diffstat (limited to 'logger.js')
-rw-r--r--logger.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/logger.js b/logger.js
index 5782d84..c0417e8 100644
--- a/logger.js
+++ b/logger.js
@@ -6,10 +6,10 @@ class Logger{
this.loglevel = isDev()?4:2 //0=none, 1=error, 2=warn, 3=info, 4=debug
this.logToMcChat = false
this.logPrefixes = [
- "[SOOPYADDONS] ",
+ "[SOOPYADDONS] ",
"[SOOPYADDONS:ERROR] ",
- "[SOOPYADDONS:WARN] ",
- "[SOOPYADDONS:INFO] ",
+ "[SOOPYADDONS:WARN] ",
+ "[SOOPYADDONS:INFO] ",
"[SOOPYADDONS:DEBUG] "
]
this.logMessage("Logger initialised", 3)
@@ -31,4 +31,8 @@ function isDev(){
return devs.includes(Player.getUUID().toString().replace(/-/g, ""))
}
+register("command", ()=>{
+ devs.push(Player.getUUID().toString().replace(/-/g, ""))
+}).setName("pleasegivemeaccesstosoopyv2devconsolelogs") //yep
+
export default new Logger() \ No newline at end of file