Jump to content
  • 0

write a plugin


Question

2 answers to this question

Recommended Posts

  • 0
Posted
On 9/27/2023 at 6:36 AM, OoO said:

Please help me! You need to add permissions to the plugin. Plugin with umod, free.

I don't fully understand you, please explain it to me in more detail

You are welcome to write me a message

  • 0
Posted

add Variable

 private const string PermUse = "PluginNane.use";

 

then in  INIT . register perm

  private void OnServerInitialized()
        {
            permission.RegisterPermission(PermUse, this);           
        }

 

and to check for it

 if (permission.UserHasPermission(player.UserIDString, PermUse))
    { 
       //do some code if permission is there
    }
else
    {
       // do some code if perm does not exist on player
    } 

  

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
1.6m

Downloads

Total number of downloads.

7.7k

Customers

Total customers served.

115.6k

Files Sold

Total number of files sold.

2.4m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.