Timed bans not working universallySolved
does the ban time work?
player.Ban("reason", new TimeSpan(2, 0, 0)); // Ban player for 2 hours​

i tried with new TimeSpan(0, 0, 20) but even after 20 seconds im still banned

you need do unban before ban again , may be it's trouble
There is no universal timed ban support at the moment with Rust.
Ok i was just wondering as i can recon "ban <PlayerID> <Reasion> 2"  and it bans the player for  2 hours.

if i use 

ServerUsers.Set(player.userID, ServerUsers.UserGroup.Banned, "StashEsp", lang.GetMessage("Ban Message", this, player.UserIDString), duration.Ticks / 60);
				ServerUsers.Save();​

Will ban the player for like 23000 days it uses long format for the time im just not sure what the long format is it is using..
Right, the timed functionality hasn't been implemented since Rust added that.
Thanks i worked it out using
static double GrabCurrentTime() => DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1, 0, 0, 0)).TotalSeconds;

Merged post

Post this here for others to see how i did it.

static double GrabCurrentTime() => DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1, 0, 0, 0)).TotalSeconds;

ServerUsers.Set(player.userID, ServerUsers.UserGroup.Banned, "StashEsp", lang.GetMessage("Ban Message", this, player.UserIDString), (long)GrabCurrentTime() + configData.settings.Player_Ban_Time);
ServerUsers.Save();​
Locked automatically