Update 0BDFDB.plugin.js
This commit is contained in:
parent
c0fa115571
commit
db5017eeb4
|
@ -2,7 +2,7 @@
|
||||||
* @name BDFDB
|
* @name BDFDB
|
||||||
* @author DevilBro
|
* @author DevilBro
|
||||||
* @authorId 278543574059057154
|
* @authorId 278543574059057154
|
||||||
* @version 3.8.5
|
* @version 3.8.6
|
||||||
* @description Required Library for DevilBro's Plugins
|
* @description Required Library for DevilBro's Plugins
|
||||||
* @invite Jx3TjNS
|
* @invite Jx3TjNS
|
||||||
* @donate https://www.paypal.me/MircoWittrien
|
* @donate https://www.paypal.me/MircoWittrien
|
||||||
|
@ -4609,7 +4609,9 @@ module.exports = (_ => {
|
||||||
catch (err) {
|
catch (err) {
|
||||||
returnvalue = null;
|
returnvalue = null;
|
||||||
let value = values.shift();
|
let value = values.shift();
|
||||||
formatVars[err.toString().split("for: ")[1] || err.toString().split("\"")[1]] = value != null ? (value === 0 ? "0" : value) : "undefined";
|
value = value != null ? (value === 0 ? "0" : value) : "undefined";
|
||||||
|
let valueName = err.toString().split("for: ")[1] || err.toString().split("\"")[1];
|
||||||
|
formatVars[valueName] = valueName.endsWith("Hook") ? (_ => value) : value;
|
||||||
if (stringObj.intMessage) {
|
if (stringObj.intMessage) {
|
||||||
try {for (let hook of stringObj.intMessage.format(formatVars).match(/\([^\(\)]+\)/gi)) formatVars[hook.replace(/[\(\)]/g, "")] = n => n;}
|
try {for (let hook of stringObj.intMessage.format(formatVars).match(/\([^\(\)]+\)/gi)) formatVars[hook.replace(/[\(\)]/g, "")] = n => n;}
|
||||||
catch (err2) {}
|
catch (err2) {}
|
||||||
|
|
Loading…
Reference in New Issue