Can't add player that hasn't connected beforeSolved
I had datafiles which were too big (over 10000 of players) and only a handful of special vip groups so I deleted everything and ran timedpermissions_ensureaccess yes but it does not add anyone. When I manually tried to add steam id's from the data file backup to the remaining time it said "couldn't find user"
Or do I have to use o.usergroup add steamid vip and then this plugin would only remove them after the period?
The ensureaccess command uses the data from the data files to make sure all users have the permissions & groups they're supposed to have according to the data files.
5b5bc6885b278.png LaserHydra
The ensureaccess command uses the data from the data files to make sure all users have the permissions & groups they're supposed to have according to the data files.

So if I want to remove the oxide data files and then add all steam id's to the vipgroup of the new data files, can this plugin still remove them after their period?

Aaaah I figured it out

You can delete all oxide data files and then just use TimedExecute to run timedpermissions_ensureaccess yes every 60 seconds that way you dont have to worry about vips reconnecting and complaining they have lost their rank

Yes, as long as the Timed Permissions data file is not removed, it will try to remove the group after the time expired.

I'm not sure I would recommend running that command every 60 seconds. The command is primarily meant to be called manually to restore permissions which have been lost because of removal of the oxide permissions database or some other way.

5b5bc6885b278.png LaserHydra

Yes, as long as the Timed Permissions data file is not removed, it will try to remove the group after the time expired.

I'm not sure I would recommend running that command every 60 seconds. The command is primarily meant to be called manually to restore permissions which have been lost because of removal of the oxide permissions database or some other way.

I wiped all my oxide data files in order to clean up server and increase performance (no need to save all the data from default players anyway) and when doing so I noticed that the players that reconnected which previously had a rank (and their rank is still in the Timed Permissions Database) that they will not get their rank unless I ran that command.

So if you have alot of people with a special rank, you will need to keep running this command everytime one of them connects again otherwise they wont have their previous rank. It wont add it back automaticly unless you run the command. So I don't think there is any other way?

It should re-configure all permissions, also for offline players.
EDIT: Actually, it'll only work if oxide knows the player. Which isn't the case if you deleted all those files. So you're right.

5b5bc6885b278.png LaserHydra

It should re-configure all permissions, also for offline players.
EDIT: Actually, it'll only work if oxide knows the player. Which isn't the case if you deleted all those files. So you're right.

Any way to build in a check whenever a new unknown player connects who's steamid is in the timedpermissions data file that it would execute the ensure permission command?

EDIT: Or maybe build in a command that will add everyone from the datafile to the according  oxide groups? That seems like the obvious solution

I could do that every time somebody connects, but it's not necessarily something I'm a fan of.
That's what the command is supposed to do. But the plugin can only grant permissions to players who are known to oxide. As I said, since you deleted the files, oxide doesn't know them.
5b5bc6885b278.png LaserHydra
I could do that every time somebody connects, but it's not necessarily something I'm a fan of.
That's what the command is supposed to do. But the plugin can only grant permissions to players who are known to oxide. As I said, since you deleted the files, oxide doesn't know them.

So can you create a one-time-execute command so the known players from the TimedPermissions data file are made known to the Oxide data file?

For example it will check what user have what permission/group inside the TimedPermissions data file and then it will run the command to add that player to the according oxide permission/group in the Oxide data files.

That way you only have to run the command once after you have wiped the Oxide data files and you can wipe the Oxide Data files regulary.

I mean the oxide data files aren't made to be wiped regularly. As long as you don't grant each individual player a ton of permissions, the file shouldn't grow too absurdly large too quickly.
I don't know whether there is a way for me to "make a player known to oxide" as you say, and that also feels a bit hacky.

Maybe I can add a command which just makes sure one specific player has their permissions and you can call that via a plugin which executes commands when a player logs in. I believe something like that already exists.

5b5bc6885b278.png LaserHydra

I mean the oxide data files aren't made to be wiped regularly. As long as you don't grant each individual player a ton of permissions, the file shouldn't grow too absurdly large too quickly.
I don't know whether there is a way for me to "make a player known to oxide" as you say, and that also feels a bit hacky.

Maybe I can add a command which just makes sure one specific player has their permissions and you can call that via a plugin which executes commands when a player logs in. I believe something like that already exists.

Well when you've had thousands of players connected to your server then the files can grow quite large. When I wiped them I noticed a huge fps increase. So I think it's smart to do it regulary

Merged post

So any news if a command that adds everyone from the datafile to the corresponding usergroups is coming soon?
Please add a command that you can run once after cleaning out oxide data files that will:

1) Go through Timed Permissions Data File
2) Add all Timed Permission ranks to the Oxide Usergroup

I published version 1.5.0 which now ensures the player has access to their groups & permissions when they connect.

I removed the ensureaccess command.

5b5bc6885b278.png LaserHydra

I published version 1.5.0 which now ensures the player has access to their groups & permissions when they connect.

I removed the ensureaccess command.

Thats great then I no longer need Timed Execute to do this every minute.

How does it work exactly? Does it check every player or just the player that has a place in the data file of timed permissions?

Locked automatically