SimpleJail 2.1.1

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
    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+.

    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
    PsyberTech likes this.

Recent Updates

  1. Small change
  2. Source on GitHub
  3. UUID support + bugfixes

Recent Reviews

  1. 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".
  2. 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.
  3. jfdkjfakdkm
    Version: 2.1.1
    Good plugin I have no problems I love it
    1. Prunt
      Author's Response
      Thank you for the review!
  4. 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.
  5. 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!
  6. noemi1998_
    Version: 2.1.1
    Please, i need your Support, could you add me on Discord? Noemi#0001
    I set many Jails with /setjail and it always says "set jail successfully" or something like that.
    But when i put some players in Jail (i set my own accounts to Jail "3 accounts") they will be always teleportet into the same Jail? I don't know why, normal?
    1. Prunt
      Author's Response
      Currently, there is only one jail. You can't create multiple jails, but it's in the TO-DO list.
  7. Jillo
    Version: 2.1.1
    Yo, thanks god you back, it's so long man xD
    p/s: You still owe me feature for multiple jails, so keep working. Luv U :3
    1. Prunt
      Author's Response
      Thank you for the review! Let's hope that we'll see the day when this feature is implemented. :)
  8. SuperPig
    Version: 2.1
    Works perfectly, but i would like to see the posibility to set more than 1 jail, and when you send someon to the jail, the plugin send him to a random jail
    1. Prunt
      Author's Response
      Thank you for the review!
  9. TeemoCell
    Version: 2.1
    Still working, simple and good Plugin. Hopefully there will be a few more update.
    1. Prunt
      Author's Response
      Thank you for the review! Let's hope so. :)
  10. LetsBrowniii
    Version: 2.1
    Please do a Bypass for The Jail Option, player with the Permission can Jail me and i am the Server Administrator.
    1. Prunt
      Author's Response
      It's already on my TO-DO list, but since I no longer actively develop my free plugins, I can't promise anything.