Jump to content

toplayer command not working in RCON

No Response 1.0.6

 If i try the command from chat nothing happens and no messages in console. If i run the command via F1 console it works fine. If i try to run it through RCON manually it throws an error. 

I'm trying to have a friendly NPC run the command on demand as so:

botrespawn toplayer playerID boss

however this method runs through RCON so the error is thrown.  Any way to fix this?



(02:46:42) | Failed to call hook 'botrespawn' on plugin 'BotReSpawn v1.0.6' (NullReferenceException: Object reference not set to an instance of an object)

at Oxide.Plugins.BotReSpawn.botrespawn (ConsoleSystem+Arg arg) [0x0013f] in <1d3d30f4ab8e4d74a725f5f0866dd932>:0

at Oxide.Plugins.BotReSpawn.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x01880] in <1d3d30f4ab8e4d74a725f5f0866dd932>:0

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

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

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


Share this comment

Link to comment

Just after posting this I was able to find a work around but having my NPC run the command as:

SendAsPlayer botrespawn toplayer playerID boss

I'm assuming using this method is calling the hook as the player though the F1 console which is why it's working (complete guess here). 

However, it would be nice if running the command through RCON worked if possible. 

Share this comment

Link to comment

Thanks for reporting this.
I tested in the server console but not Rcon. I'll get on this today and see what the issue is.

  • Like 1

Share this comment

Link to comment

Yeah, this doesn't work 'cos I'm a dumbass.
It's fixed now but there won't be another update for a little bit.
I'll DM you the fix, for now.

  • Love 1

Share this comment

Link to comment


Total number of downloads.



Total customers served.


Files Sold

Total number of files sold.


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.