1. Hi all. How i can register permission on C# plugin?
     
  2. Wulf

    Wulf Community Admin

    Code:
    permission.RegisterPermission("yourplugin.permission", this);
     
  3. Thank you.
    [DOUBLEPOST=1453022054][/DOUBLEPOST]
    Code:
    [SERVER v1.0.19] Console: GatherManager.cs(14,32): error CS1519: Unexpected symbol `(' in class, struct, or interface member declaration
    Code:
    Code:
    namespace Oxide.Plugins
    {    [Info("Gathering Manager", "Mughisi", "2.2.3", ResourceId = 675)]
        class GatherManager : RustPlugin
        {
            permission.RegisterPermission("yourplugin.permission", this);
     
  4. Wulf

    Wulf Community Admin

    It doesn't go in a random spot, check the Docs or existing plugins that use permissions for examples. It should be under Init() or Loaded().
     
  5. Try doing it in the Loaded() hook.
     
  6. Alredy do it. Thank you.