Simple Jail

Simple Jail

6.1k Downloads

Simple Jail adds a very simple player management system for servers.

Using commands, players can be assigned the following punishments:

DETAINED: unable to leave the jail area or break blocks but able to speak and inventory is stashed away
SILENCED: unable to speak in chat but able to play the game otherwise
SOLITARY: unable to leave the jail area or break blocks, unable to speak, and inventory is stashed away

The commands are as follows: 


"/setjail <leash> <name>" which sets the jail location to your current position.  The leash determines how far players can be from this position before being teleported back. If a name is provided it will create or update the jail of that name.  Otherwise the default jail is assumed.

"/jail <player> <punishment> <duration> <duration interval> <jail name>"  Intervals: MINUTES, HOURS, DAYS, WEEKS, MONTHS, YEARS

"/release <player>"    Released players are sent to the world spawn

Technical notes:

Spawn points do not need to be confined.  You could technically jail players in the center of your spawn town.  If they travel too far away from the jail point, they will be teleported back.  This is useful if they happen to have teleport items.  They will be unable to use commands while silenced or in solitary.

Note this mod does work serverside only with one caveat.  Clients (vanilla or modded) will receive chat notifications from the jailer that are meaningless.  (eg. "msg.jail.success")  This is due to them not having the translations on their end.  All functions work perfectly regardless.  This mod was tested using vanilla clients.  If you want translations to work without the client having the mod, be sure to add the translation keys to a resourcepack which you know they will use.

Planned updates 

Login blocking: Certain features of mods may give benefits to logging in. This would be a new judgement which prevents them from connecting until their release time