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?
Solved Checking if a player has joined for the first time?
Discussion in 'Rust Development' started by B▲rt, Feb 28, 2016.
-
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.
-
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; }
-
-