Jump to content

Failed to call hook 'CanUpgrade' on plugin 'BetterTC v1.5.93

Pending 1.5.93

TOP-ic
TOP-ic

Posted

There are a lot of bugs. I suspect they occur when a player doesn't have permission to play but clicks the buttons in the cabinet.

[Oxide] 11:28 [Error] Failed to call hook 'CanUpgrade' on plugin 'BetterTC v1.5.93' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.BetterTC.CanUpgrade (BasePlayer player, BuildingPrivlidge cup, BuildingBlock block, BuildingGrade+Enum grade) [0x00000] in <a958335565274fe79b489dae58d5a224>:0
  at Oxide.Plugins.BetterTC.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00f07] in <a958335565274fe79b489dae58d5a224>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <42f9bedc659b4f4786eb778d3cd58968>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <112d89ea5d3348c8b949af0ab1a866d2>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <112d89ea5d3348c8b949af0ab1a866d2>:0

ninco90

Posted

Hi! If a player doesn't have permissions, the upgrade action won't be performed.

I assume this happens when another plugin that also uses the CanUpgrade hook runs it. Could you check if any other plugins use it? (You can do this with a global search across all your plugins using Visual Studio.)

I suspect another plugin is interfering.

TOP-ic

Posted

2 hours ago, ninco90 said:

Hi! If a player doesn't have permissions, the upgrade action won't be performed.

I assume this happens when another plugin that also uses the CanUpgrade hook runs it. Could you check if any other plugins use it? (You can do this with a global search across all your plugins using Visual Studio.)

I suspect another plugin is interfering.

Did I understand correctly that I need to look for CanUpgrade in all my installed plugins?

2m

Downloads

Total number of downloads.

9.4k

Customers

Total customers served.

136.8k

Files Sold

Total number of files sold.

2.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.