Update RemoveNicknames.plugin.js
This commit is contained in:
parent
a2fab456d1
commit
dca3032984
|
@ -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]);
|
||||
}});
|
||||
|
||||
|
|
Loading…
Reference in New Issue