Any way to give and revoke a player permission via C# plugin? like:
Code:permission.grant(player.UserIDString, "permission"))
Solved Giving permission automatically?
Discussion in 'Rust Development' started by TheMechanical97, Jan 11, 2016.
-
Wulf Community Admin
You'd have to run the console command to grant it if your plugin isn't the owner of the permissions.
-
Plugin is the permissions owner
-
Wulf Community Admin
Prefixed with "permission" of course. -
permission.GrantUserPermission(player, permission); Maybe?
[DOUBLEPOST=1452531037][/DOUBLEPOST]I have the [LibraryFunction("GrantUserPermission")]Already in the code -
Wulf Community Admin
Code:permission.GrantUserPermission(player.UserIDString, "myplugin.perm", this);