Advertisement
hello173

Our World of Pixels client side Admin

May 16th, 2022
1,642
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. OWOP.chat.recvModifier = function(e) {
  2.     return (
  3.         e.startsWith(`[${OWOP.player.id}] `) ||
  4.         e.startsWith(`${OWOP.player.id}: `)
  5.     ) ? toAdmin(e) : e
  6. }
  7. function toAdmin(e) {
  8.     var hasNick = e.startsWith("[");
  9.     if(hasNick)
  10.         e = e.replace(`[${OWOP.player.id}]`, "(A)");
  11.     else
  12.         e = e.replace(`${OWOP.player.id}`, `(A) ${OWOP.player.id}`);
  13.     return e;
  14. }
Advertisement
RAW Paste Data Copied
Advertisement