Hello, so I was scripting a temporary ban… but I was wondering, the timer would work if there’s NO players in game? Like adonis? how they do it? using https service and posting in some kind of page? or game datastore?
What I mean is, a timer for bans for example, will it work if there’s no servers running?
You can use datastores and use os.time to get the time they were banned and the time they’ll be unbanned. When a player gets banned, just create a new entry in the datastore with the player’s userId being the key and the value being a table storing the time they were banned and the days the ban lasts for. When the player joins the game, you’d check if there’s an entry in the ban datastore for them, if so, check if the current seconds returned by os.time is less than or equal to Ban_time + (86400 * days)(Ban_time is the time they were banned). If it is true, you’d remove the entry from the datastore, and if not, kick the player from the game.
So, the ban will work fine, even if there’s no servers running using datastores
You would have to host your bans list on a 3rd party site like Trello and then update the Trello externally from the Roblox Server. Then have the Roblox Server request to see the Trello and don’t allow access of anyone inside the Trello.
I don’t remember Adonis having any functionality to input commands without a server running, perhaps you meant “If the player you’re banning is not ingame?” If so you could just set a Datastore key and if the value of that key is true or some boolean when they join, you just deny them further access.