Jump to content

How to use the plugin

Closed 1.0.8

BetterDeadThanZed

I'm a bit confused on how to use the plugin. I've put it on the server like every other plugin I've put on my server. I go to permissions and I see the default permissions for this plugin. If I try to use any command for the plugin, it's an unknown command. The plugin is loaded as per the console. There are no errors. I've been running Rust servers for over 4 years so I'm familiar with how plugins normally work. What am I doing wrong here? I am using the default config file.

Link to comment

Ok, right after I posted this, I realized these are console commands and now they're working. Now I want to edit the config. I removed all groups in the CommandConfig except for 2, which I named "build" and "survival". I saved the file, uploaded it and reloaded the plugin. I assumed that would make new permissions, but it did not. I use AdminMenu on my server and when I opened the Permissions section, I still see the default permissions for APControl and not the new ones I created. I am attaching the config I am using.

APControl.json

Link to comment
On 8/3/2024 at 10:36 AM, BetterDeadThanZed said:

Ok, right after I posted this I realized that these were console commands and now they work. Now I want to edit the config. I deleted all the groups in CommandConfig except 2 which I named "build" and "survival". I saved the file, loaded it and reloaded the plugin. I assumed that this would create new permissions but it didn't. I use AdminMenu on my server and when I opened the Permissions section I still see the default permissions for APControl and not the new ones I created. I have attached the config I am using.

APControl.json 826 B  ·  0 downloads

At the moment you cannot create your own permissions; you can use existing ones.
I will add the ability to change and create your own permissions in the next update!

Edited by VORON
Link to comment
On 8/3/2024 at 10:36 AM, BetterDeadThanZed said:

Ok, right after I posted this, I realized these are console commands and now they're working. Now I want to edit the config. I removed all groups in the CommandConfig except for 2, which I named "build" and "survival". I saved the file, uploaded it and reloaded the plugin. I assumed that would make new permissions, but it did not. I use AdminMenu on my server and when I opened the Permissions section, I still see the default permissions for APControl and not the new ones I created. I am attaching the config I am using.

APControl.json 826 B · 1 download

New version 1.0.9 has everything you need
Just remember that permissions can be changed in such variations.

Example:
"apcontrol." should stay

apcontrol.use.pvp
apcontrol.use.p32423
apcontrol.use.dfdfghfgh
apcontrol.sdefsdfdfg
apcontrol.12312332

 

  • Love 1
Link to comment

Thanks for the update! Below is my config. I have a plugin called InjuriesAndDiseases that I want only to affect players with the permission apcontrol.use.survival. I think I set it up right but when I remove that permission, the effects of that plugin continue to affect the player.

{
  "CommandConfigs": {
    "pve": {
      "Blacklist": [
	  "InjuriesAndDiseases"
	  ],
      "Permission": "apcontrol.use.pve",
      "Plugins": []
    },
    "survival": {
      "Blacklist": [],
      "Permission": "apcontrol.use.survival",
      "Plugins": [
	  "InjuriesAndDiseases",
	  "FridgeFood"
	  ]
    }
  },
  "Messages": {
    "CommandScheduled": "Command {0} {1} will be executed in {2} seconds.",
    "CommandUsage": "Usage: {0} <on/off> [delay]",
    "ConfigFileLoaded": "Configuration file loaded successfully.",
    "ConfigFileLoadError": "Error loading configuration file: {0}",
    "ConfigFileNotFound": "Configuration file not found or empty, creating a new configuration file.",
    "InvalidDelay": "The second argument must be a number indicating the delay in seconds.",
    "LoadingPlugin": "Loading {0} plugin...",
    "UnloadingPlugin": "Unloading {0} plugin..."
  }
}

 

Link to comment

I added more plugins to the blacklist sections and those plugins are not being unloaded:

 

{
  "CommandConfigs": {
    "pve": {
      "Blacklist": [
	  "InjuriesAndDiseases",
	  "TiersMode"
	  ],
      "Permission": "apcontrol.use.pve",
      "Plugins": [
	  "SkillTree"
	  ]
    },
    "survival": {
      "Blacklist": [
	  "SkillTree"
	  ],
      "Permission": "apcontrol.use.survival",
      "Plugins": [
	  "InjuriesAndDiseases",
	  "FridgeFood",
	  "TiersMode"
	  ]
    }
  },
  "Messages": {
    "CommandScheduled": "Command {0} {1} will be executed in {2} seconds.",
    "CommandUsage": "Usage: {0} <on/off> [delay]",
    "ConfigFileLoaded": "Configuration file loaded successfully.",
    "ConfigFileLoadError": "Error loading configuration file: {0}",
    "ConfigFileNotFound": "Configuration file not found or empty, creating a new configuration file.",
    "InvalidDelay": "The second argument must be a number indicating the delay in seconds.",
    "LoadingPlugin": "Loading {0} plugin...",
    "UnloadingPlugin": "Unloading {0} plugin..."
  }
}

 

Link to comment
9 hours ago, BetterDeadThanZed said:

Thanks for the update! Below is my config. I have a plugin called InjuriesAndDiseases that I want only to affect players with the permission apcontrol.use.survival. I think I set it up right but when I remove that permission, the effects of that plugin continue to affect the player.

{
  "CommandConfigs": {
    "pve": {
      "Blacklist": [
	  "InjuriesAndDiseases"
	  ],
      "Permission": "apcontrol.use.pve",
      "Plugins": []
    },
    "survival": {
      "Blacklist": [],
      "Permission": "apcontrol.use.survival",
      "Plugins": [
	  "InjuriesAndDiseases",
	  "FridgeFood"
	  ]
    }
  },
  "Messages": {
    "CommandScheduled": "Command {0} {1} will be executed in {2} seconds.",
    "CommandUsage": "Usage: {0} <on/off> [delay]",
    "ConfigFileLoaded": "Configuration file loaded successfully.",
    "ConfigFileLoadError": "Error loading configuration file: {0}",
    "ConfigFileNotFound": "Configuration file not found or empty, creating a new configuration file.",
    "InvalidDelay": "The second argument must be a number indicating the delay in seconds.",
    "LoadingPlugin": "Loading {0} plugin...",
    "UnloadingPlugin": "Unloading {0} plugin..."
  }
}

 

 

8 hours ago, BetterDeadThanZed said:

I added more plugins to the blacklist sections and those plugins are not being unloaded:

 

{
  "CommandConfigs": {
    "pve": {
      "Blacklist": [
	  "InjuriesAndDiseases",
	  "TiersMode"
	  ],
      "Permission": "apcontrol.use.pve",
      "Plugins": [
	  "SkillTree"
	  ]
    },
    "survival": {
      "Blacklist": [
	  "SkillTree"
	  ],
      "Permission": "apcontrol.use.survival",
      "Plugins": [
	  "InjuriesAndDiseases",
	  "FridgeFood",
	  "TiersMode"
	  ]
    }
  },
  "Messages": {
    "CommandScheduled": "Command {0} {1} will be executed in {2} seconds.",
    "CommandUsage": "Usage: {0} <on/off> [delay]",
    "ConfigFileLoaded": "Configuration file loaded successfully.",
    "ConfigFileLoadError": "Error loading configuration file: {0}",
    "ConfigFileNotFound": "Configuration file not found or empty, creating a new configuration file.",
    "InvalidDelay": "The second argument must be a number indicating the delay in seconds.",
    "LoadingPlugin": "Loading {0} plugin...",
    "UnloadingPlugin": "Unloading {0} plugin..."
  }
}

 

 

ok, I'll check this situation and let you know

Link to comment
11 hours ago, BetterDeadThanZed said:

I added more plugins to the blacklist sections and those plugins are not being unloaded:

 

{
  "CommandConfigs": {
    "pve": {
      "Blacklist": [
	  "InjuriesAndDiseases",
	  "TiersMode"
	  ],
      "Permission": "apcontrol.use.pve",
      "Plugins": [
	  "SkillTree"
	  ]
    },
    "survival": {
      "Blacklist": [
	  "SkillTree"
	  ],
      "Permission": "apcontrol.use.survival",
      "Plugins": [
	  "InjuriesAndDiseases",
	  "FridgeFood",
	  "TiersMode"
	  ]
    }
  },
  "Messages": {
    "CommandScheduled": "Command {0} {1} will be executed in {2} seconds.",
    "CommandUsage": "Usage: {0} <on/off> [delay]",
    "ConfigFileLoaded": "Configuration file loaded successfully.",
    "ConfigFileLoadError": "Error loading configuration file: {0}",
    "ConfigFileNotFound": "Configuration file not found or empty, creating a new configuration file.",
    "InvalidDelay": "The second argument must be a number indicating the delay in seconds.",
    "LoadingPlugin": "Loading {0} plugin...",
    "UnloadingPlugin": "Unloading {0} plugin..."
  }
}

 

The blacklist works fine, maybe you're doing something wrong, I'll try to explain to you.

CONSOLE:

pve on

Unloaded plugin InjuriesAndDiseases
Unloaded plugin TiersMode
Loaded plugin SkillTree
pve off

Loaded plugin InjuriesAndDiseases
Loaded plugin TiersMode
Unloaded plugin SkillTree

the pve on or off command affects plugins from the "Plugins" list, and the "Blacklist" works depending on the "Plugins"

Link to comment
12 hours ago, BetterDeadThanZed said:

Thanks for the update! Below is my config. I have a plugin called InjuriesAndDiseases that I want only to affect players with the permission apcontrol.use.survival. I think I set it up right but when I remove that permission, the effects of that plugin continue to affect the player.

{
  "CommandConfigs": {
    "pve": {
      "Blacklist": [
	  "InjuriesAndDiseases"
	  ],
      "Permission": "apcontrol.use.pve",
      "Plugins": []
    },
    "survival": {
      "Blacklist": [],
      "Permission": "apcontrol.use.survival",
      "Plugins": [
	  "InjuriesAndDiseases",
	  "FridgeFood"
	  ]
    }
  },
  "Messages": {
    "CommandScheduled": "Command {0} {1} will be executed in {2} seconds.",
    "CommandUsage": "Usage: {0} <on/off> [delay]",
    "ConfigFileLoaded": "Configuration file loaded successfully.",
    "ConfigFileLoadError": "Error loading configuration file: {0}",
    "ConfigFileNotFound": "Configuration file not found or empty, creating a new configuration file.",
    "InvalidDelay": "The second argument must be a number indicating the delay in seconds.",
    "LoadingPlugin": "Loading {0} plugin...",
    "UnloadingPlugin": "Unloading {0} plugin..."
  }
}

 

you need to create a group "medical" to which you add apcontrol.use.survival and permission for example injuriesanddiseases.doctor and give the player the medical group temporarily or forever; if you take away the group from the player, the player will not have access to the permissions that were in this group. Maybe it will be right

Link to comment

I think maybe I misunderstand how this plugin works. In the config I posted above, if I add a player to group apcontrol.use.survival, Skill Tree should be disabled because it's on the blacklist. In my test, when I added myself to this group, Skill Tree was still loaded.

Link to comment
33 minutes ago, BetterDeadThanZed said:

I think maybe I misunderstand how this plugin works. In the config I posted above, if I add a player to group apcontrol.use.survival, Skill Tree should be disabled because it's on the blacklist. In my test, when I added myself to this group, Skill Tree was still loaded.

This plugin loads and unloads other plugins, an example of what the plugin does:

The standard oxide has the following commands:

  • o.reload Vanish   ( oxide.reload Vanish )
  • o.load Vanish
  • o.unload Vanish

APControl executes commands #2 and #3 only with several plugins from the list at once.
And what you need is most likely Timed Permissions on umod.

Link to comment
3 minutes ago, VORON said:

This plugin loads and unloads other plugins, an example of what the plugin does:

The standard oxide has the following commands:

  • o.reload Vanish   ( oxide.reload Vanish )
  • o.load Vanish
  • o.unload Vanish

APControl executes commands #2 and #3 only with several plugins from the list at once.
And what you need is most likely Timed Permissions on umod.

The way I read the description is this: If a plugin is in the Blacklist, any player with that group has the plugin unloaded for them. If a plugin is in the "Plugins" section, the plugin is loaded for them. Perhaps I am just reading it wrong. Maybe it's written poorly. I am not sure.

Link to comment
1.3m

Downloads

Total number of downloads.

6.5k

Customers

Total customers served.

95.7k

Files Sold

Total number of files sold.

1.9m

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.