SHARE
TWEET

Untitled

a guest Apr 20th, 2019 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.             case 'remove':
  2.                     var whitelist = KnuddelsServer.getPersistence().getObject('whitelisted', []);
  3.                     var userAccess = KnuddelsServer.getUserAccess();
  4.                     var nutzer = ''+params2.escapeKCode()+'';              
  5.                     for (var i = 0; i < whitelist.length; i++) {
  6.                         var Nutzer = whitelist[i];
  7.                         var Place = whitelist.indexOf();
  8.                         user.sendPrivateMessage('°#°Variablen:°##°Nutzer: '+Nutzer+'°#°Place: '+Place);
  9.                         if (Nutzer.toLowerCase() == nutzer.toLowerCase()) {
  10.                             var newArray = whitelist.splice(Place);
  11.                             KnuddelsServer.getPersistence().setObject('whitelisted', newArray);
  12.                         }                      
  13.                     }
  14.                 break;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top