I want to make it so that players have permission to change their own team but not others?

So I have this plugin that gives you chest menus called "Chest Commands", if a player is not OP they have no permission to change teams but I don't exactly know how to make it so that they can only change their own team.

I also made a class based system, but I need to make it so that a person can change their own score on the leader board but only that specific score, similar to this team system but it might be more complicated so idk
Was this page helpful?