Update RemoveNicknames.plugin.js

This commit is contained in:
Mirco Wittrien 2024-04-09 18:06:37 +02:00
parent a2fab456d1
commit dca3032984
1 changed files with 0 additions and 3 deletions

View File

@ -97,10 +97,7 @@ module.exports = (_ => {
}
onStart () {
let init = false;
BDFDB.TimeUtils.timeout(_ => init = true, 3000);
BDFDB.PatchUtils.patch(this, BDFDB.LibraryModules.UserNameUtils, "getName", {after: e => {
if (!init) return;
return this.getNewName(e.methodArguments[2], e.methodArguments[0]);
}});