ok i try to redo another file then maybe it cannot read the older spawn file ... thank

Jail
Send players to jail
Total Downloads: 6,967 - First Release: Jan 29, 2015 - Last Update: Oct 29, 2017
- 5/5, 26 likes
-
Jail is definitely broken
Code:3:46 PM [Error] Failed to call hook 'OnEnterZone' on plugin 'Jail v2.0.8' (NullReferenceException: Object reference not set to an instance of an object) 3:46 PM [Debug] at Oxide.Plugins.Jail.hasPermission (.BasePlayer player) [0x00000] in <filename unknown>:0 at Oxide.Plugins.Jail.OnEnterZone (System.String ZoneID, .BasePlayer player) [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
Last edited by a moderator: Jan 30, 2016 -
yes i saw that, with the new Zone Manager it seems to be broken.
-
Jail is broken for me right now as well. I have everything up to date.
I really need this mod for an event that we are hosting this weekend, so any traction that could be made on fixing this would be most appreciated.
This is the error from the log:
[11/11/2015 11:17:17 AM] [Oxide] 11:17 AM [Error] Failed to call hook 'cmdChatJail' on plugin 'Jail v2.0.8' (FormatException: Input string was not in the correct format)
[11/11/2015 11:17:31 AM] [Oxide] 11:17 AM [Error] Failed to call hook 'cmdChatJail' on plugin 'Jail v2.0.8' (FormatException: Input string was not in the correct format)
I'm able to configure the jail and it applies the undestruct to the building but it doesn't teleport people and it definitely doesn't keep them there.
[DOUBLEPOST=1447448381,1447269957][/DOUBLEPOST]Wow, so I have to assume that this mod has been ditched...
Sad, it would have made our event so much simpler. -
When using plugins that modify the players name, it can be quite frustrating to type in the whole username (e.g. clans plugin). Therefore it makes sense to search users by partial names. This code helps doing this and has been inspired by the clans plugin:
Code:private object FindPlayer(string tofind) { if (tofind.Length == 17) { ulong steamid; if (ulong.TryParse(tofind.ToString(), out steamid)) { return FindPlayerByID(steamid); } } else if (string.IsNullOrEmpty(tofind)) { return noPlayersFound; } BasePlayer targetplayer = null; tofind = tofind.ToLower(); var allPlayers = BasePlayer.activePlayerList.ToArray(); // Try to find an exact match first foreach (var player in allPlayers) { if (player.displayName == tofind) { if (targetplayer != null) return multiplePlayersFound; // Not unique targetplayer = player; } } if (targetplayer != null) return targetplayer; // Otherwise try to find a partial match foreach (var player in allPlayers) { if (player.displayName.ToLower().IndexOf(tofind) >= 0) { if (targetplayer != null) return multiplePlayersFound; // Not unique targetplayer = player; } } if (targetplayer == null) return noPlayersFound; return targetplayer; }
Last edited by a moderator: Dec 9, 2015 -
I'm also getting the error Failed to call hook 'cmdChatJail' on plugin 'Jail v2.0.8' (FormatException: Input string was not in the correct format) when trying to jail a person... anyone maintaining the plugin currently?
-
I get the almost same error message. When will there be any fix?
"
[Oxide] 6:20 PM [Error] Failed to call hook 'cmdChatJail' on plugin 'Jail' (Inva
lidCastException: Cannot cast from source type to destination type.)" -
can we please get update for this each time i try jail someone or free it disconnects them off the server
-
Hello,
And A Merry Christmas to Everyone!
I am also having an issue with the Jail plugin using it in conjunction with the PlayerManager plugin. Every time I try to jail someone they get kicked and when they try to return they get the dreaded "Disconnected: RPC Error: ForcePositionto". I then try to free them and the same error message appears when they try to log back in. The only way I can have them be able to come back into the server is by going into the oxide\data\jail.json file and removing their info from the file.
Please Fix and Update
Thanks!!! -
with the last couple pages of the same issue it looks like this has been ditched or forgotten? Does anyone have a link to the working Zonemanager (aka older version)?
-
Hello, Im not sure if this topic did came up before but i cant find any solution. When i /jail someone they get kicked of the server with Error: RPC Error: forcepositionto. and the same error when i /free them again.
-
hey reneb can u update this please so it works with player manager too it disconnects player each time u jail them
-
Hi can someone help I have read everything here, installed all the mods and still cant get it working? I also get this error mention above Error: RPC Error and player kicked :-(
Ive try this (below)but still cant get it(I must be missing something) to make it work could someone post a easy step by step please??? It will also serve to help others.
e.g
you need to create the prison spawnfile before
if a new file appears it means that you didnt create it before
read the overview ^^
you need the spawns database plugin and do:
/spawns_new
/spawns_add (multiple time, where you want all your spawn points)
/spawns_save prison
THEN you can use /jail_config spawnfile prison
and jail someoneLast edited by a moderator: Jan 25, 2016 -
[Error] Failed to call hook 'OnEnterZone' on plugin 'Jail v2.0.8' (NullReferenceException: Object reference not set to an instance of an object)
kiked jail and freeded -
is it posible to have a Vote jail, that way people on server can send a jack a... in jail for XX time
-
Hello,
I installed the Jail plugin for my Rust server a few days ago, i thought i had it all good to go and had set the spawns in appropriate places, but when i tried to send players to the jail, the plugin kicked them from my game.
I found this out when i tried to show one of the players on the server the jail, so i teleported him to my position and he disconnected all of a sudden with no error. So i tried walking him there, with no luck either, in the end i jailed him and was going to set him free to walk around but the instant i jailed him, he was kicked. I decided to try on another player and the same happened for him. Any fixes? @Wulf -
Alot of people want this fixed it seems(new jail cells). It would be amazing if it was picked back up. We need you RENEB! Just saying, I would rather use this plugin than the player manager. I mean I have rusty.
-
Confirmed still not working. Players getting dcd off the server when i apply the /jail command, to send them to the jail.
-
i hope there is a fix for this plugin fast ;-)
-