Description
This simple jail plugin aims to be very lightweight and easy to use. It allows players with proper permissions to jail other players, unjail them and check if they are jailed (also shows information). There is also a whitelist to allow only certain commands while in jail. All messages are configurable! It does support UUID's. It should support /reload, but full restart is preferable.
Videos
Would YOU like to make one? Let me know!
Dependencies
This plugin requires Java 8 and Spigot/Bukkit 1.8-1.12 for versions below 2.2 or 1.16 for 2.2+.
Setup
Just install the plugin as usual and let it generate the config file. Configuration options are explained below, under "Sample config". After that you need to build an unbreakable prison cell, because this plugin does not include block protection (players can break their way out of the prison, if there's no plugin or bedrock to stop them). Also you need to set jail and unjail positions with respective commands.
Commands and permissions
/command <required> [optional] (explanation) required.permission
- /jail <player> <time (#mon|#d|#h|#m)> <reason>
- simplejail.jail (OP)
- /jail Prunt 7d2h Griefing is not allowed!
- Jails specified player for a specified time with a specified reason. Teleports them to the specified jail point. You can combine different time formats (e.g. 1mon2h).
- /unjail <player>
- simplejail.unjail (OP)
- /unjail Prunt
- Sets player free if they were in jail. Teleports them to specified unjail point.
- /checkjail <player>
- simplejail.checkjail (OP)
- /checkjail Prunt
- Checks whether or not specified player is jailed or not. If is, then shows info about them.
- /setjail
- simplejail.setjail (OP)
- Sets the point where player is teleported when they're jailed. Protect it with another plugin or build it from bedrock so jailed players couldn't break their way free.
- /setunjail
- simplejail.setunjail (OP)
- Sets the point where player is teleported when they're released from jail. It could be, for example, server spawn or outside of prison.
- /simplejail
- simplejail.reload (OP)
- Reloads the config file.
Sample config
Available on GitHub.
Questions, reviews, feature requests, bug reports etc.
Let me know about any questions, feature requests, bug reports etc. in the Discussion section, please leave review section clear of them.
Basically, if you like the plugin, give it a rating, if not, then let me know in the Discussion.
TO-DO list
Please note that I no longer actively develop this plugin, so new features probably won't be added by me. You can submit a pull request on GitHub, though.
- Add support for multiple jails - /setjail [name], /setunjail [name], /jails
- Add possibility to jail player forever, also add years and seconds
- Add bailing
- Add "jail sticks/police batons" - different items that send players to jail for configurable duration per item if hit, optionally remove certain items from their inventory as well (drugs etc)
- Add punishment info signs for cells - per player
- Also a command (/jailtime)
- Add "handcuffs" (freeze player in place)
- Add %lenght% to messages - shows punishment lenght
- Add %punisher% to messages - player who sent them to jail
- Add permission "simplejail.jail.exempt"
- Add command to show all players currently in jail (+ extra info)
- Add command to show player's previous punishments
- Add a config value where admins can set the fraction of time deducted while online and offline between 0 and 2
- Add option to disallow chat for jailed players
- Add option to broadcast when player is sent to jail, also add silent option "/jail -s"
- Add option to disable using/interacting with specific items/blocks