Jump to content

Failed to Call Hook - Open

Pending 1.1.3

DollyDeee
DollyDeee

Posted

13.01 20:35:30 [Server] INFO [Error] - Failed to call hook 'CmdOpenRewards' on plugin 'DailyRewards v1.1.3' (NullReferenceException: Object reference not set to an instance of an object)
13.01 20:35:30 [Server] INFO at Oxide.Core.Libraries.Permission.UserHasPermission (System.String playerId, System.String permission) [0x0000a] in <2a1b2b9b0c9d45ea87d32bff811299cc>:0
13.01 20:35:30 [Server] INFO at Oxide.Plugins.DailyRewards+CooldownSettings.GetCooldown (System.String playerID) [0x0002f] in <cd0a023eb42944b39e4f9c3d0f20229e>:0
13.01 20:35:30 [Server] INFO at Oxide.Plugins.DailyRewards+PlayerData.GetCooldown () [0x00000] in <cd0a023eb42944b39e4f9c3d0f20229e>:0
13.01 20:35:30 [Server] INFO at Oxide.Plugins.DailyRewards+PlayerData.HasCooldown () [0x00000] in <cd0a023eb42944b39e4f9c3d0f20229e>:0
13.01 20:35:30 [Server] INFO at Oxide.Plugins.DailyRewards+OpenedRewardPlayer.CheckIfNeedUpdateAward () [0x0004c] in <cd0a023eb42944b39e4f9c3d0f20229e>:0
13.01 20:35:30 [Server] INFO at Oxide.Plugins.DailyRewards+OpenedRewardPlayer.UpdateAwards () [0x00021] in <cd0a023eb42944b39e4f9c3d0f20229e>:0
13.01 20:35:30 [Server] INFO at Oxide.Plugins.DailyRewards+OpenedRewardPlayer..ctor (BasePlayer player, System.Boolean mainUI) [0x00014] in <cd0a023eb42944b39e4f9c3d0f20229e>:0
13.01 20:35:30 [Server] INFO at Oxide.Plugins.DailyRewards.GetOrCreateOpenedRewardPlayer (BasePlayer player, System.Boolean mainUI) [0x0002b] in <cd0a023eb42944b39e4f9c3d0f20229e>:0
13.01 20:35:30 [Server] INFO at Oxide.Plugins.DailyRewards.OpenAwardsUI (BasePlayer player) [0x00000] in <cd0a023eb42944b39e4f9c3d0f20229e>:0
13.01 20:35:30 [Server] INFO at Oxide.Plugins.DailyRewards.CmdOpenRewards (Oxide.Core.Libraries.Covalence.IPlayer cov, System.String command, System.String[] args) [0x000ae] in <cd0a023eb42944b39e4f9c3d0f20229e>:0
13.01 20:35:30 [Server] INFO at Oxide.Plugins.DailyRewards.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00820] in <cd0a023eb42944b39e4f9c3d0f20229e>:0
13.01 20:35:30 [Server] INFO at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <d82f1fa409f84967ab685a3dbdd116ae>:0
13.01 20:35:30 [Server] INFO at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <2a1b2b9b0c9d45ea87d32bff811299cc>:0
13.01 20:35:30 [Server] INFO at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <2a1b2b9b0c9d45ea87d32bff811299cc>:0
13.01 20:35:30 [Server] INFO Failed to call hook 'CmdOpenRewards' on plugin 'DailyRewards v1.1.3' (NullReferenceException: Object reference not set to an instance of an object)
13.01 20:35:30 [Server] INFO at Oxide.Core.Libraries.Permission.UserHasPermission (System.String playerId, System.String permission) [0x0000a] in <2a1b2b9b0c9d45ea87d32bff811299cc>:0
13.01 20:35:30 [Server] INFO at Oxide.Plugins.DailyRewards+CooldownSettings.GetCooldown (System.String playerID) [0x0002f] in <cd0a023eb42944b39e4f9c3d0f20229e>:0
13.01 20:35:30 [Server] INFO at Oxide.Plugins.DailyRewards+PlayerData.GetCooldown () [0x00000] in <cd0a023eb42944b39e4f9c3d0f20229e>:0
13.01 20:35:30 [Server] INFO at Oxide.Plugins.DailyRewards+PlayerData.HasCooldown () [0x00000] in <cd0a023eb42944b39e4f9c3d0f20229e>:0
13.01 20:35:30 [Server] INFO at Oxide.Plugins.DailyRewards+OpenedRewardPlayer.CheckIfNeedUpdateAward () [0x0004c] in <cd0a023eb42944b39e4f9c3d0f20229e>:0
13.01 20:35:30 [Server] INFO at Oxide.Plugins.DailyRewards+OpenedRewardPlayer.UpdateAwards () [0x00021] in <cd0a023eb42944b39e4f9c3d0f20229e>:0
13.01 20:35:30 [Server] INFO at Oxide.Plugins.DailyRewards+OpenedRewardPlayer..ctor (BasePlayer player, System.Boolean mainUI) [0x00014] in <cd0a023eb42944b39e4f9c3d0f20229e>:0
13.01 20:35:30 [Server] INFO at Oxide.Plugins.DailyRewards.GetOrCreateOpenedRewardPlayer (BasePlayer player, System.Boolean mainUI) [0x0002b] in <cd0a023eb42944b39e4f9c3d0f20229e>:0
13.01 20:35:30 [Server] INFO at Oxide.Plugins.DailyRewards.OpenAwardsUI (BasePlayer player) [0x00000] in <cd0a023eb42944b39e4f9c3d0f20229e>:0
13.01 20:35:30 [Server] INFO at Oxide.Plugins.DailyRewards.CmdOpenRewards (Oxide.Core.Libraries.Covalence.IPlayer cov, System.String command, System.String[] args) [0x000ae] in <cd0a023eb42944b39e4f9c3d0f20229e>:0
13.01 20:35:30 [Server] INFO at Oxide.Plugins.DailyRewards.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00820] in <cd0a023eb42944b39e4f9c3d0f20229e>:0
13.01 20:35:30 [Server] INFO at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <d82f1fa409f84967ab685a3dbdd116ae>:0
13.01 20:35:30 [Server] INFO at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <2a1b2b9b0c9d45ea87d32bff811299cc>:0
13.01 20:35:30 [Server] INFO at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <2a1b2b9b0c9d45ea87d32bff811299cc>:0


Any ideas how I can fix this? Currently players cannot open Daily Rewards

 

MeventSupport

Posted

11 hours ago, DollyDeee said:

13.01 20:35:30 [Server] INFO [Error] - Failed to call hook 'CmdOpenRewards' on plugin 'DailyRewards v1.1.3' (NullReferenceException: Object reference not set to an instance of an object)
13.01 20:35:30 [Server] INFO at Oxide.Core.Libraries.Permission.UserHasPermission (System.String playerId, System.String permission) [0x0000a] in <2a1b2b9b0c9d45ea87d32bff811299cc>:0
13.01 20:35:30 [Server] INFO at Oxide.Plugins.DailyRewards+CooldownSettings.GetCooldown (System.String playerID) [0x0002f] in <cd0a023eb42944b39e4f9c3d0f20229e>:0
13.01 20:35:30 [Server] INFO at Oxide.Plugins.DailyRewards+PlayerData.GetCooldown () [0x00000] in <cd0a023eb42944b39e4f9c3d0f20229e>:0
13.01 20:35:30 [Server] INFO at Oxide.Plugins.DailyRewards+PlayerData.HasCooldown () [0x00000] in <cd0a023eb42944b39e4f9c3d0f20229e>:0
13.01 20:35:30 [Server] INFO at Oxide.Plugins.DailyRewards+OpenedRewardPlayer.CheckIfNeedUpdateAward () [0x0004c] in <cd0a023eb42944b39e4f9c3d0f20229e>:0
13.01 20:35:30 [Server] INFO at Oxide.Plugins.DailyRewards+OpenedRewardPlayer.UpdateAwards () [0x00021] in <cd0a023eb42944b39e4f9c3d0f20229e>:0
13.01 20:35:30 [Server] INFO at Oxide.Plugins.DailyRewards+OpenedRewardPlayer..ctor (BasePlayer player, System.Boolean mainUI) [0x00014] in <cd0a023eb42944b39e4f9c3d0f20229e>:0
13.01 20:35:30 [Server] INFO at Oxide.Plugins.DailyRewards.GetOrCreateOpenedRewardPlayer (BasePlayer player, System.Boolean mainUI) [0x0002b] in <cd0a023eb42944b39e4f9c3d0f20229e>:0
13.01 20:35:30 [Server] INFO at Oxide.Plugins.DailyRewards.OpenAwardsUI (BasePlayer player) [0x00000] in <cd0a023eb42944b39e4f9c3d0f20229e>:0
13.01 20:35:30 [Server] INFO at Oxide.Plugins.DailyRewards.CmdOpenRewards (Oxide.Core.Libraries.Covalence.IPlayer cov, System.String command, System.String[] args) [0x000ae] in <cd0a023eb42944b39e4f9c3d0f20229e>:0
13.01 20:35:30 [Server] INFO at Oxide.Plugins.DailyRewards.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00820] in <cd0a023eb42944b39e4f9c3d0f20229e>:0
13.01 20:35:30 [Server] INFO at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <d82f1fa409f84967ab685a3dbdd116ae>:0
13.01 20:35:30 [Server] INFO at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <2a1b2b9b0c9d45ea87d32bff811299cc>:0
13.01 20:35:30 [Server] INFO at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <2a1b2b9b0c9d45ea87d32bff811299cc>:0
13.01 20:35:30 [Server] INFO Failed to call hook 'CmdOpenRewards' on plugin 'DailyRewards v1.1.3' (NullReferenceException: Object reference not set to an instance of an object)
13.01 20:35:30 [Server] INFO at Oxide.Core.Libraries.Permission.UserHasPermission (System.String playerId, System.String permission) [0x0000a] in <2a1b2b9b0c9d45ea87d32bff811299cc>:0
13.01 20:35:30 [Server] INFO at Oxide.Plugins.DailyRewards+CooldownSettings.GetCooldown (System.String playerID) [0x0002f] in <cd0a023eb42944b39e4f9c3d0f20229e>:0
13.01 20:35:30 [Server] INFO at Oxide.Plugins.DailyRewards+PlayerData.GetCooldown () [0x00000] in <cd0a023eb42944b39e4f9c3d0f20229e>:0
13.01 20:35:30 [Server] INFO at Oxide.Plugins.DailyRewards+PlayerData.HasCooldown () [0x00000] in <cd0a023eb42944b39e4f9c3d0f20229e>:0
13.01 20:35:30 [Server] INFO at Oxide.Plugins.DailyRewards+OpenedRewardPlayer.CheckIfNeedUpdateAward () [0x0004c] in <cd0a023eb42944b39e4f9c3d0f20229e>:0
13.01 20:35:30 [Server] INFO at Oxide.Plugins.DailyRewards+OpenedRewardPlayer.UpdateAwards () [0x00021] in <cd0a023eb42944b39e4f9c3d0f20229e>:0
13.01 20:35:30 [Server] INFO at Oxide.Plugins.DailyRewards+OpenedRewardPlayer..ctor (BasePlayer player, System.Boolean mainUI) [0x00014] in <cd0a023eb42944b39e4f9c3d0f20229e>:0
13.01 20:35:30 [Server] INFO at Oxide.Plugins.DailyRewards.GetOrCreateOpenedRewardPlayer (BasePlayer player, System.Boolean mainUI) [0x0002b] in <cd0a023eb42944b39e4f9c3d0f20229e>:0
13.01 20:35:30 [Server] INFO at Oxide.Plugins.DailyRewards.OpenAwardsUI (BasePlayer player) [0x00000] in <cd0a023eb42944b39e4f9c3d0f20229e>:0
13.01 20:35:30 [Server] INFO at Oxide.Plugins.DailyRewards.CmdOpenRewards (Oxide.Core.Libraries.Covalence.IPlayer cov, System.String command, System.String[] args) [0x000ae] in <cd0a023eb42944b39e4f9c3d0f20229e>:0
13.01 20:35:30 [Server] INFO at Oxide.Plugins.DailyRewards.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00820] in <cd0a023eb42944b39e4f9c3d0f20229e>:0
13.01 20:35:30 [Server] INFO at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <d82f1fa409f84967ab685a3dbdd116ae>:0
13.01 20:35:30 [Server] INFO at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <2a1b2b9b0c9d45ea87d32bff811299cc>:0
13.01 20:35:30 [Server] INFO at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <2a1b2b9b0c9d45ea87d32bff811299cc>:0


Any ideas how I can fix this? Currently players cannot open Daily Rewards

 

Please send the config 

DollyDeee

Posted

It's pretty long - I can send the cooldown/notification portion.

I ended up turning this to false (enabled:false) in order to get the command to trigger opening the daily rewards.
 

  "Work with Notify?": true,

  "Work with LangAPI?": true,

  "Wipe on new map save": false,

  "Cooldown Settings": {

    "Checking for AFK? (using AFKAPI)": true,

    "Cooldowns (permission – cooldown)": {

      "dailyrewards.vip": 3100.0,

      "dailyrewards.premium": 2600.0

    },

    "Default Cooldown": 3600.0,

    "Enabled": false

  },


But now it doesn't require the players to play for 1 hr on server before claiming their reward : it instant opens at the 24hr mark.
I'm worried if I turn it back to true, then new players won't be able to open the daily rewards.

I have it set not to open on connect etc. (see below) It was working fine, but I change the map and after restart it wouldn't open on command execute.

 

  "Permission (ex: dailyrewards.use)": "dailyrewards.use",

  "Daily reset settings": {

    "Time to reset (hh:mm)": "05:00",

    "Time Zone": "Europe/London"

  },

  "Notification settings": {

    "On Cooldown Ended": {

      "Type": 2130354,

      "Show when a player has connected to the server?": false,

      "Show when the cooldown is over?": true

    },

    "Has Cooldown": {

      "Type": 2130355,

      "Show when a player has connected to the server?": false

    },

    "Picked up daily reward": {

      "Type": 2130356,

      "Show when the player has picked up the daily reward?": false

    }

  },

  "Show UI with rewards when player connects to server?": false,

  "UI settings": {

    "Award Width": 145.0,

    "Award Height": 215.0,

    "Award Indent (X)": 10.0,

    "Awards On Line": 7,

    "Up Indent": 15.0,

    "Available Day Color": {

      "Opacity (0 - 100)": 100.0,

      "HEX": "#4CD125"

    },


*Thank you,
Dolly

 

DollyDeee

Posted

with the config like this 

  "Work with Notify?": true,

  "Work with LangAPI?": true,

  "Wipe on new map save": false,

  "Cooldown Settings": {

    "Checking for AFK? (using AFKAPI)": true,

    "Cooldowns (permission – cooldown)": {

      "dailyrewards.vip": 3100.0,

      "dailyrewards.premium": 2600.0

    },

    "Default Cooldown": 3600.0,

    "Enabled": true

  },


I get this error

image.png.10c8883ce25c153102e893dda9fe546c.png

and players cannot open the rewards panel

1.5m

Downloads

Total number of downloads.

7.3k

Customers

Total customers served.

109k

Files Sold

Total number of files sold.

2.2m

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.