API method for checking time leftSuggestion

can make api for check time

like 

if(TimedPermissions.Call("HasPermissions", player.userid, permissions))
{
yes
}
else
{
no
}

I'm wondering what you would use such an API for?
5b5bc6885b278.png LaserHydra
I'm wondering what you would use such an API for?

I will use it for the plugin I am creating,

For example)
If the player makes an item purchase in the store
If a Permission exists, it will be purchased at the next level.

Is there any reason you can't use the Oxide permissions API?
5b5bc6885b278.png LaserHydra
Is there any reason you can't use the Oxide permissions API?

The period for which compensation
Be a yes / no confirmation can give the next level.

So to actually gain that benefit, I assume rather than a "HasPermissions" API like you mentioned at first, you'd like to be able to figure out how much time they have remaining for a permission or when it expires?
5b5bc6885b278.png LaserHydra
So to actually gain that benefit, I assume rather than a "HasPermissions" API like you mentioned at first, you'd like to be able to figure out how much time they have remaining for a permission or when it expires?

If you do, you cannot extend the period.

I'm sorry but I am having trouble understanding what you need.

In your original request you asked for a `HasPermission` method to be added, however if you simply want to check whether a user has a permission, please use `permission.UserHasPermission` through the oxide permission system, see https://umod.org/documentation/api/permissions.

Or if you want Timed Permissions to extend a players permission when they get a permission twice, that's already the default behaviour so you won't have to do anything.
Lastly, if you want obtain the time a player has left for a given permission, I can implement that.
5b5bc6885b278.png LaserHydra
I'm sorry but I am having trouble understanding what you need.

In your original request you asked for a `HasPermission` method to be added, however if you simply want to check whether a user has a permission, please use `permission.UserHasPermission` through the oxide permission system, see https://umod.org/documentation/api/permissions.

Or if you want Timed Permissions to extend a players permission when they get a permission twice, that's already the default behaviour so you won't have to do anything.
Lastly, if you want obtain the time a player has left for a given permission, I can implement that.

ok i try :D