SimpleJail [1.16] 2.2

Very simple plugin to jail rulebreakers for a specified time!

  1. Prunt
    Tested Minecraft Versions:
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.16
    Source Code:
    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.

    Would YOU like to make one? Let me know!

    This plugin requires Java 8 and Spigot/Bukkit 1.8-1.12 for versions below 2.2 or 1.16 for 2.2+.

    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
    awesomekingpro and PsyberTech like this.

Recent Updates

  1. Refactored code, built for 1.16
  2. Small change
  3. Source on GitHub

Recent Reviews

  1. EHCanadian
    Version: [1.16] 2.2
    Had to change plugin.yml to main: me.prunt.simplejail.Main in the .jar using 7-zip. As a case sensitive typo failed to allow it to run in 1.17.1
  2. RedstoneFuture
    Version: [1.16] 2.2
    It's a simple, useful plugins to get a minimalistic jail system. The "uuid save" feature have a bug, but the most of the plugin should be works fine. The config is understandable. It's all coded in one class (maybe, in future projects, you can use more classed to get a cleaner code - also on minimalistic projekts like this), but you've commented it and this is good. Thank you for the plugin! Good work.
    1. Prunt
      Author's Response
      Thank you for the review! This plugin was created 6 years ago and I've improved quite a bit on the coding department since then ;) Thanks for the feedback anyhow!
  3. Davidas
    Version: [1.16] 2.2
    update 1.17 pls
    update 1.17 pls
    update 1.17 pls
    update 1.17 pls
    update 1.17 pls
    update 1.17 pls
    1. Prunt
      Author's Response
      Again, it's inappropriate to review the plugin based on the fact that it doesn't support a version it's not designed to support.
  4. Evolution31
    Version: 2.1.1
    Dommage qu'il n'y est plus aucune Mise à jour sur les dernières versions MC (1.16).
    1. Prunt
      Author's Response
      I'm sorry, but I don't speak French. However, I think it's not polite to give a plugin a bad review just because it doesn't support newer versions, especially when it has been clearly stated.
  5. ChickBoyYT
    Version: 2.1.1
    This plugin is awesome but i would it updated to the latest MC version. 1.16/1.17
    1. Prunt
      Author's Response
      Unfortunately, I don't have any plans to update it. Thank you for the review, though!
  6. GKleveland
    Version: 2.1.1
    When are the permissions coming?
    I really need permissions to the plugin, but nice plugin! :D
    1. Prunt
      Author's Response
      The permissions are already here. Look closely under the heading "Commands and permissions".
  7. Voyager1x
    Version: 2.1.1
    thanks for this plugin, i only have 1 problem. when i try to put multiple jails it says "too many arguments"
    1. Prunt
      Author's Response
      That's because multiple prison support hasn't been added yet. You can create only one jail.
  8. jfdkjfakdkm
    Version: 2.1.1
    Good plugin I have no problems I love it
    1. Prunt
      Author's Response
      Thank you for the review!
  9. 01113woodMox
    Version: 2.1.1
    this error goes on my console my server is spigot 1.14.4
    org.bukkit.command.CommandException: Unhandled exception executing command 'jail' in plugin SimpleJail v2.1.1
    at org.bukkit.command.PluginCommand.execute( ~[Spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at org.bukkit.command.SimpleCommandMap.dispatch( ~[Spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at org.bukkit.craftbukkit.v1_14_R1.CraftServer.dispatchCommand( ~[Spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.PlayerConnection.handleCommand( ~[Spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.PlayerConnection.a( ~[Spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.PacketPlayInChat.a( ~[Spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.PacketPlayInChat.a( ~[Spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.PlayerConnectionUtils.lambda$0( ~[Spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at [Spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeTask(SourceFile:144) [Spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) [Spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeNext(SourceFile:118) [Spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.MinecraftServer.aX( [Spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.MinecraftServer.executeNext( [Spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeAll(SourceFile:103) [Spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.MinecraftServer.sleepForTick( [Spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at [Spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at Source) [?:1.8.0_221]
    Caused by: java.lang.NumberFormatException: For input string: ""
    at java.lang.NumberFormatException.forInputString(Unknown Source) ~[?:1.8.0_221]
    at java.lang.Integer.parseInt(Unknown Source) ~[?:1.8.0_221]
    at java.lang.Integer.parseInt(Unknown Source) ~[?:1.8.0_221]
    at me.Prunt.simplejail.Main.getUntil( ~[?:?]
    at me.Prunt.simplejail.Main.onCommand( ~[?:?]
    at org.bukkit.command.PluginCommand.execute( ~[Spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    1. Prunt
      Author's Response
      Please don't post errors as a reviw. I'd be glad to help, but the Discussions tab is where you can ask for help.
  10. Nikd0
    Version: 2.1.1
    I haven't found any problem and I hope i won't find it. Thank you for a great plugin!
    1. Prunt
      Author's Response
      Thank you for the review!