Jump to content
We've made dark mode the default preference to protect your eyes! You can change this at anytime below. ×
Search In
  • More options...
Find results that contain...
Find results in...
David Holt

Commands Error The Plugin

Closed 1.0.0

Hi Mevent, 

I have tried to add commands to the JSON file numerous times and all I get is a complete crash of the plugin. 

Can you advise on the correct way to do this so I can add Minicopter, Sedan and the Airdrop Call please 

Thank you in advance 

{
          "Type": "Item",
          "ID": 688,
          "Image": "",
          "Title": "",
          "Command (%steamid%)": "",
          "Plugin": {
            "Hook": "Withdraw",
            "Plugin Name": "Economics",
            "Amount": 0
          },
          "DisplayName (empty - default)": "",
          "ShortName": "sedan",
          "Skin": 0,
          "Amount": 1,
          "Price": 25,
          "Discount (%)": {
            "shop.default": 0,
            "shop.vip": 10
          }

 

(23:37:42) | Loaded plugin Shop v1.0.0 by Mevent

(23:37:58) | Unloaded plugin Shop v1.0.0 by Mevent

(23:37:58) | Failed to call hook 'OnServerInitialized' on plugin 'Shop v1.0.0' (NullReferenceException: Object reference not set to an instance of an object)

at Oxide.Plugins.Shop.<ItemsToDict>m__A (Oxide.Plugins.Shop+ShopItem item) [0x000cd] in <53d7d169eac94598912e75ea323c1d37>:0

at System.Collections.Generic.List`1[T].ForEach (System.Action`1[T] action) [0x00024] in <fb001e01371b4adca20013e0ac763896>:0

at Oxide.Plugins.Shop.<ItemsToDict>m__8 (Oxide.Plugins.Shop+ShopCategory category) [0x00000] in <53d7d169eac94598912e75ea323c1d37>:0

at System.Collections.Generic.List`1[T].ForEach (System.Action`1[T] action) [0x00024] in <fb001e01371b4adca20013e0ac763896>:0

at Oxide.Plugins.Shop.ItemsToDict () [0x00000] in <53d7d169eac94598912e75ea323c1d37>:0

at Oxide.Plugins.Shop.OnServerInitialized () [0x0004e] in <53d7d169eac94598912e75ea323c1d37>:0

at Oxide.Plugins.Shop.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x001a8] in <53d7d169eac94598912e75ea323c1d37>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <80b90e8213db44b29ec2d4111764172c>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ec05e0208c9149bba43236ca58fea105>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ec05e0208c9149bba43236ca58fea105>:0

Share this comment


Link to comment
On 2/26/2021 at 4:08 AM, David Holt said:

Hi Mevent, 

I have tried to add commands to the JSON file numerous times and all I get is a complete crash of the plugin. 

Can you advise on the correct way to do this so I can add Minicopter, Sedan and the Airdrop Call please 

Thank you in advance 

{
          "Type": "Item",
          "ID": 688,
          "Image": "",
          "Title": "",
          "Command (%steamid%)": "",
          "Plugin": {
            "Hook": "Withdraw",
            "Plugin Name": "Economics",
            "Amount": 0
          },
          "DisplayName (empty - default)": "",
          "ShortName": "sedan",
          "Skin": 0,
          "Amount": 1,
          "Price": 25,
          "Discount (%)": {
            "shop.default": 0,
            "shop.vip": 10
          }

 

(23:37:42) | Loaded plugin Shop v1.0.0 by Mevent

(23:37:58) | Unloaded plugin Shop v1.0.0 by Mevent

(23:37:58) | Failed to call hook 'OnServerInitialized' on plugin 'Shop v1.0.0' (NullReferenceException: Object reference not set to an instance of an object)

at Oxide.Plugins.Shop.<ItemsToDict>m__A (Oxide.Plugins.Shop+ShopItem item) [0x000cd] in <53d7d169eac94598912e75ea323c1d37>:0

at System.Collections.Generic.List`1[T].ForEach (System.Action`1[T] action) [0x00024] in <fb001e01371b4adca20013e0ac763896>:0

at Oxide.Plugins.Shop.<ItemsToDict>m__8 (Oxide.Plugins.Shop+ShopCategory category) [0x00000] in <53d7d169eac94598912e75ea323c1d37>:0

at System.Collections.Generic.List`1[T].ForEach (System.Action`1[T] action) [0x00024] in <fb001e01371b4adca20013e0ac763896>:0

at Oxide.Plugins.Shop.ItemsToDict () [0x00000] in <53d7d169eac94598912e75ea323c1d37>:0

at Oxide.Plugins.Shop.OnServerInitialized () [0x0004e] in <53d7d169eac94598912e75ea323c1d37>:0

at Oxide.Plugins.Shop.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x001a8] in <53d7d169eac94598912e75ea323c1d37>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <80b90e8213db44b29ec2d4111764172c>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ec05e0208c9149bba43236ca58fea105>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ec05e0208c9149bba43236ca58fea105>:0

Send me ur config

Share this comment


Link to comment

About Us

Codefling is a forward-thinking platform for developers to share and monetize their work from plugins to game assets and everything in-between.

2,126 files sold to 250 customers and $28,049 of payments processed this year!

×
×
  • 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.