1. I'm making a plugin for myself and I need to check for a player being new to the server, I was thinking of checking against a database if the player has ever been on the server? Is there any other way of doing it or is this the best way?
     
  2. Wulf

    Wulf Community Admin

    You'd need to store when they first connected in a datafile. You may be able to check existing data, but unsure.
     
  3. Try
    Code:
    object CanClientLogin(Network.Connection connection)
            {
                if (connection != null && !permission.UserExists(connection.userid.ToString())) // info stored in \my_server_identity\oxide\data\oxide.*.data
                {
                    // it's first visit.
                    // here could be your code, but without return "string";
                }
                return null;
            }
    
     
  4. This is a valid solution you can use, but if you clear your permissions for some odd reason just know everyone will be treated as a first join again.
     
  5. Thanks this will help! And @Hatemail I was thinking about every world having a new notification as everyone is starting fresh etc. But later I will make a database / file for users.