I made this small test to try to grant permissions via a plugin, revoking works fine but grant doesn't work. Is this correct use @Wulf?
using Oxide.Core.Libraries.Covalence;
namespace Oxide.Plugins
{
[Info("Test", "klauz24", 1.0)]
class testGrantRevoke : CovalencePlugin
{
const string perm = "test.perm";
void Init()
{
permission.RegisterPermission(perm, this);
}
[Command("grant")]
void cmdTestPlugin(IPlayer player)
{
permission.GrantUserPermission(player.Id, perm, this);
}
[Command("revoke")]
void cmdTestPlugin1(IPlayer player)
{
permission.RevokeUserPermission(player.Id, perm);
}
}
}