Hello! I want to make a plugin similar to PurePerms, but I can`t find a way to add permissions anywhere. Sorry for my English, if something I wrote is unclear. Thank you!
Using a config. A command like /perm set <player> <permission> can give the player the permission and got saved in a directory.
PermissionAttachments are what you are looking for. This should give you the general idea: https://bukkit.gamepedia.com/Developing_a_permissions_plugin