Hello,
I have a problem, when I use the /jail zone command I get this error.
Code:[Error] Failed to call hook 'cmdJail' on plugin 'Jail v3.0.3' (NullReferenceException: Object reference not set to an instance of an object)

Jail
Send players to jail
Total Downloads: 6,967 - First Release: Jan 29, 2015 - Last Update: Oct 29, 2017
- 5/5, 26 likes
-
Post the full error
-
That is the Full Error
-
Do you have ZoneManager installed? And are you using the version I posted on the previous page?
-
Yes I do have ZoneManger and I'm using the version you posted.
-
Hmm, it works fine for me. Looking at what I have done there the only thing that could do that is if ZoneManager is not loaded/running on your server. When I unload ZoneManager and try it throws that exact error
-
Ok, it worked
I had to restart the server. Thank you !
-
Code:
[Oxide] 8:47 PM [Debug] at System.Collections.Generic.Dictionary`2[BasePlayer,Oxide.Plugins.Timer].Add (.BasePlayer key, Oxide.Plugins.Timer value) [0x00000] in <filename unknown>:0 at Oxide.Plugins.Jail+<SendToJail>c__AnonStorey1.<>m__0 () [0x00000] in <filename unknown>:0 at Oxide.Core.Libraries.Timer+TimerInstance.Update () [0x00000] in <filename unknown>:0
-
This all works great now after yesterday's update to zonemanager
[DOUBLEPOST=1457106557,1457088553][/DOUBLEPOST]I spoke too soon console command to jail threw this error
7:45 AM [Error] Failed to call hook 'ccmdjailSend' on plugin 'Jail v3.0.3' (InvalidCastException: Cannot cast from source type to destination type.)
7:45 AM [Debug] at Oxide.Plugins.Jail.ccmdjailSend (.Arg arg) [0x00000] in <filename unknown>:0
at Oxide.Plugins.Jail.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0 -
-
I have a lot of strange stuff pop up with the jail 1. The zone radius in the jail_data file resets to 0 every restart or reload. I make my jail with 16 cell/spawnpoints yet it will only let me use 1 then tells me no available cells. 3 People can warp out using warps on the server,something I asked reneb about a long time ago and he said the warps author needed to add some hook
-
-
for some reason even tough i have set up more then 50 spawnpoints inside the my jail i can not jail more then one player at a time.. they also dont spawn on the spawn points. where did i mess up ?
-
I have set a kit as "inmate", and currently it does not give it to the inmate when they are jailed, I changed the conifg to "inmate" for the kit, same name as the kit i created... any suggestions?
also:
the stored inventory part is working, just the spawned inmate is completely empty. Upon being set free the inventory is restored. -
I'm going to do some testing tonight. Sorry @MeatCircus, I didn't see your reply
[DOUBLEPOST=1458114392,1458099911][/DOUBLEPOST]Ok, I just did some pretty thorough testing with 2 friends.
You should all make sure you get the latest update, some of the issues you were describing are from a couple of updates ago and have since been fixed afaik -
-
I guess I will have to try again in the morning after some rest... all things were ok on my end, newest files, proper case in name... etc.. just blame it on me being blind and missing something..which is the most likely explanation.
-
-
-
Well, I tried everything i could think of, the kits work normally, just not initiated from the jail plugin. All my files are new, using the zonemanager you posted, and the newest updates on everything else. created the jail(building) created a spawnfile(55 spawns) set the jail zone with /jail zone 40. then /jail add prison jail1 jailspawn to set it up. In the config file i have kits on, and changed the kit from "default", to "inmate", still does not give the inmate kit when spawning in the jailed player. The inmate has a completely empty inventory, until freed and then the original inventory is returned.