Advertisement
AEAEAEAEarray

Untitled

Aug 26th, 2021
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (b == prefix + "changename") {
  2.     let prefix = "$"; //pls change this prefix, if u using a new prefix
  3.     const send = MPP.chat.send;
  4.     let input = msg.a.substring(4).trim();
  5.     let username = msg.p.name;
  6.     if (input == "") return send(`Please enter name name to changename. Usage: ${prefix}changename. Your current name is ${username}`);
  7.     MPP.client.sendArray([{m: "userset",set: {name: input}}]);
  8.     send(`${username} changed his name to ${input}`);
  9. }
  10.    
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement