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