1. Hello, please help. Did auth and unauth not work. What is my error?

    public static void AuthToCodeLock(object codeLock, BasePlayer toPlayer)
    {
    List<ulong> ulongList = (List<ulong>) whitelistLock.GetValue(codeLock);
    if (ulongList.Contains(toPlayer.userID))
    return;
    ulongList.Add(toPlayer.userID);
    }

    public static void UnAuthToCodeLock(object codeLock, BasePlayer toPlayer)
    {
    List<ulong> ulongList = (List<ulong>) whitelistLock.GetValue(codeLock);
    if (!ulongList.Contains(toPlayer.userID))
    return;
    ulongList.Remove(toPlayer.userID);
    }
     
    Last edited by a moderator: Jul 11, 2017
  2. Wulf

    Wulf Community Admin

    It looks like you're trying to use reflection for the whitelists, which it's likely already public.
     
  3. I make it public to use it from another class
     
  4. Wulf

    Wulf Community Admin

    Right, but it's already public, you don't need to make it public.