Jump to content

Command for Personal Recycler not working

Closed 1.2.4

Hello, wondering if you can help me here, I'm using this plugin for personal recyclers: https://codefling.com/plugins/personal-recyclers

Added it just like other plugins:

{
      "Section name": "Recycler",
      "Enable this section?": true,
      "Section permission [required]": "_recycler",
      "Section icon": "https://i.imgur.com/WTm5bKJ.png",
      "Fill icon with color below?": true,
      "Inactive section color [HEX or Unity RGBA]": "#fade54",
      "Active section color [HEX or Unity RGBA]": "#e3e3e3",
      "Command executed on behalf of the player [if empty, the subsections below are used]": "",
      "Command type [true - chat, false - console]": true,
      "Permissions for above command [comma separated. optional]. Checks if the player has such a permissions.": "",
      "Show this section only to those with permissions above?": true,
      "Show this section even to those who don't have permissions?": true,
      "Subsections layout [n - number]: 0 - auto; n - from the beginning; -n - from an active element": 20,
      "Subsections": [
        {
          "Section name": "Craft",
          "Enable this section?": true,
          "Section permission [required]": "_recycler.create",
          "Section icon": "https://i.imgur.com/GKwBSpE.png",
          "Fill icon with color below?": true,
          "Inactive section color [HEX or Unity RGBA]": "0.34 0.87 0.33 1",
          "Active section color [HEX or Unity RGBA]": "#e3e3e3",
          "Command executed on behalf of the player [if empty, the subsections below are used]": "redeemrecycler",
          "Command type [true - chat, false - console]": true,
          "Permissions for above command [comma separated. optional]. Checks if the player has such a permissions.": "",
          "Show this section only to those with permissions above?": false,
          "Show this section even to those who don't have permissions?": false,
          "Subsections layout [n - number]: 0 - auto; n - from the beginning; -n - from an active element": 20,
          "Subsections": []
        },
        {
          "Section name": "Pickup",
          "Enable this section?": true,
          "Section permission [required]": "_recycler.pickup",
          "Section icon": "https://i.imgur.com/zNKwgXu.png",
          "Fill icon with color below?": true,
          "Inactive section color [HEX or Unity RGBA]": "0.96 0.34 0.34 1",
          "Active section color [HEX or Unity RGBA]": "#e3e3e3",
          "Command executed on behalf of the player [if empty, the subsections below are used]": "crecycler",
          "Command type [true - chat, false - console]": true,
          "Permissions for above command [comma separated. optional]. Checks if the player has such a permissions.": "",
          "Show this section only to those with permissions above?": false,
          "Show this section even to those who don't have permissions?": false,
          "Subsections layout [n - number]: 0 - auto; n - from the beginning; -n - from an active element": 20,
          "Subsections": []
        }
      ]
    }

But when I press the buttons to Craft or Pickup, I got this:

Failed to call hook 'DistributionCommand' on plugin 'RadialMenu v1.2.4' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.RadialMenu.DistributionCommand (ConsoleSystem+Arg args) [0x00245] in <81b7015b275642b68294ae3ffbc5a906>:0
at Oxide.Plugins.RadialMenu.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x002fe] in <81b7015b275642b68294ae3ffbc5a906>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <23ba99f131254889867c71f0bd137b1d>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <157a94ee66ab4a7991faecd1eb84be3b>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <157a94ee66ab4a7991faecd1eb84be3b>:0

Any idea?, I know that is not directly related to RadialMenu since for all the other things is working perfectly, but maybe you find something, thanks in advance!

Share this comment


Link to comment

Hi, in the "Section permission" field you are using names that include dots and underscores. This is not allowed, it is written in the description of this setting.
I would also recommend you to simplify the names of section permissions:
- recycler
---- create
---- pickup
---- *etc.

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.6k

Customers

Total customers served.

81.6k

Files Sold

Total number of files sold.

1.6m

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.