Add player to group temporarily?Solved

Hello, I have an announcer plugin that has permissions and having a small issue with something.

I have a shop announcement and when players purchase something from shop I want this announcment to be removed aka remove the announcer.shop permission

the thing is, I'm not sure how to go about this. is there a way to have a user be added to a group on join, if so then I could create a group called shop for example have the announcement perm and remove the user from group when purchasing an item.

if you want to have a player joining a group when they just join you can use the hook

OnUserConnected()

then just check if the player is already part of the group using: "permission.UserHasGroup({string user},{string group})"

I found a solution to what I was doing thanks tho!

Mind posting your solution should anyone else come across it?

used variables in my shop to do what I was wanting to do. nothing really in oxide other than have the group created.

Locked automatically