NullReferenceException at cmdChatHomeTPSolved
Failed to call hook 'cmdChatHome' on plugin 'NTeleportation v1.0.30' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.NTeleportation.cmdChatHomeTP (BasePlayer player, System.String command, System.String[] args) [0x0036b] in <69e5d45f47bc48dfafc8ea3c90c139ef>:0 
  at Oxide.Plugins.NTeleportation.cmdChatHome (BasePlayer player, System.String command, System.String[] args) [0x001df] in <69e5d45f47bc48dfafc8ea3c90c139ef>:0 
  at Oxide.Plugins.NTeleportation.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0110a] in <69e5d45f47bc48dfafc8ea3c90c139ef>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0 
Same here since using v1.0.30

Failed to call hook 'cmdChatHome' on plugin 'NTeleportation v1.0.30' (NullReferenceException: Object reference not set to an instance of an object)

at Oxide.Plugins.NTeleportation.cmdChatHomeTP (BasePlayer player, System.String command, System.String[] args) [0x0036b] in <b339cf5906c5439f99c83e5259962547>:0

at Oxide.Plugins.NTeleportation.cmdChatHome (BasePlayer player, System.String command, System.String[] args) [0x001df] in <b339cf5906c5439f99c83e5259962547>:0

at Oxide.Plugins.NTeleportation.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0110a] in <b339cf5906c5439f99c83e5259962547>:0

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

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

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

rfc1920 did you try my steps to duplicate it? You have to be able to duplicate them, I can get it done every time.
I'm actually doing /home 1 then /tpb so yes I get the cool down message but no errors.
In response to rfc1920 ():
I'm actually doing /home 1 then /tpb so yes I get the cool down message but no errors.
Hmmm... do you want to add more debug code and send me a ver with it?
For future posters, the error is consistent. What would be helpful is platform and other info, e.g. oxide version, os, etc.

Merged post

New version 1.0.31.  Let me know if that clears it up for you.

linux debian, don't know what player have made, i see it only in console, in config "UseEconomics": false

(11:32:37) | Failed to call hook 'cmdChatHome' on plugin 'NTeleportation v1.0.31' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.NTeleportation.cmdChatHomeTP (BasePlayer player, System.String command, System.String[] args) [0x0037f] in <d23bee7ce89742d0ace97830f0b87cc9>:0 
  at Oxide.Plugins.NTeleportation.cmdChatHome (BasePlayer player, System.String command, System.String[] args) [0x001df] in <d23bee7ce89742d0ace97830f0b87cc9>:0 
  at Oxide.Plugins.NTeleportation.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0110a] in <d23bee7ce89742d0ace97830f0b87cc9>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0


Merged post

btw. i think i have a clue, error is when player has cooldown, and he reported me that he don't se info on chat with cooldown time. when player has no cooldown there is no errors and everything works ok
Yes, that is where the erroring code is/was.
Update to version v1.0.31 and still got the same error. And I don't use economics...


Oxide Version:
v2.0.4083
In response to rfc1920 ():
Yes, that is where the erroring code is/was.
I found out where the erros are coming from. After updating to 1.0.30 the config says " "BypassCMD": null, ".
When changing it to " "BypassCMD": "pay", " the errors are gone, no matter if you're using economics or not.
In response to dak0za ():
I found out where the erros are coming from. After updating to 1.0.30 the config says " "BypassCMD":...
Thanks, dak0za.  I will test and confirm.

Merged post

New version 1.0.32 should fix it thanks to dak0za.  We now check for a null value of BypassCMD.  The default config should add this as "pay" but did not for some reason.  Anyway, null should work if you're not trying to enable Economics.  Even if Economics is enabled and BypassCMD is null, it should revert to the old cooldown scheme.
Locked automatically