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:
    https://github.com/hankur/SimpleJail
    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+.

    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.

    Testserver
    [​IMG]

    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. 01113woodMox
    01113woodMox
    3/5,
    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(PluginCommand.java:47) ~[Spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:149) ~[Spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at org.bukkit.craftbukkit.v1_14_R1.CraftServer.dispatchCommand(CraftServer.java:710) ~[Spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.PlayerConnection.handleCommand(PlayerConnection.java:1641) ~[Spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.PlayerConnection.a(PlayerConnection.java:1481) ~[Spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.PacketPlayInChat.a(PacketPlayInChat.java:47) ~[Spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.PacketPlayInChat.a(PacketPlayInChat.java:1) ~[Spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:19) ~[Spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.TickTask.run(SourceFile:18) [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(MinecraftServer.java:910) [Spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.MinecraftServer.executeNext(MinecraftServer.java:903) [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(MinecraftServer.java:886) [Spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:820) [Spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at java.lang.Thread.run(Unknown 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(Main.java:682) ~[?:?]
    at me.Prunt.simplejail.Main.onCommand(Main.java:259) ~[?:?]
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[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.
  2. Nikd0
    Nikd0
    5/5,
    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!
  3. noemi1998_
    noemi1998_
    5/5,
    Version: 2.1.1
    Hello
    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.
  4. Jillo
    Jillo
    5/5,
    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. :)
  5. SuperPig
    SuperPig
    5/5,
    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!
  6. TeemoCell
    TeemoCell
    5/5,
    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. :)
  7. LetsBrowniii
    LetsBrowniii
    4/5,
    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.
  8. Wizendary
    Wizendary
    3/5,
    Version: 2.1
    Good plugin but how can i add commands blacklist?
    And can you add a feature to build more cells?
    1. Prunt
      Author's Response
      Put your commands under "commands.filtered-list" in the config. Also, make sure that "commands.filter" is set to "blacklist". I probably won't add this feature any time soon, but it's in my TO-DO list.
  9. lolzcjtekid11
    lolzcjtekid11
    3/5,
    Version: 2.1
    The plugin itself worms, but the author is inactive. I was really hoping to see the updates that come that were on the to-do list. The #1 thing I wish the author did was add the jailing sticks which sent the person to a random jail, then gave the cop who arrested the illegal items which could be set in the config, but the developer doesn't "activity update his free plugins anymore".
    1. Prunt
      Author's Response
      Well, I wouldn't call myself "inactive", but it's true that I probably won't add new features any time soon.
  10. WilliamEstrela
    WilliamEstrela
    5/5,
    Version: 2.1
    Great plugin, please add a message to all players online that 1 player was jail ex: %player% foi preso por %staffer% até: %until% motivo: %reason%!
    1. Prunt
      Author's Response
      Thanks for the review! I will add this feature in the future.