[ADMN] Jail v1 - Jail players! [1.0.1-R1]

Discussion in 'Inactive/Unsupported Plugins' started by jihadjonny, Jan 8, 2012.

  1. Offline


    Version: v1


    This is a very simple plugin that I wrote to achieve a simple task. It will allow you to jail a player in a place you define as an admin. The time that the player is jailed is paused when they log out. So, you can jail them for 2 minutes, and if they log out after 1 minute and come back in an hour, they will still have a minute left in jail.

    * Jail players for x minutes
    * Jail times that persist when a player logs out, they must complete their sentence!

    <font color="rgb(136, 136, 136)"><Edit by Moderator: Redacted mediafire url>
    <Edit by Moderator: Redacted mediafire url>

    * /jail <user> <time in minutes> eg. /jail jonny 5 ; this would jail the user jonny for 5 minutes.
    * /setjail ; this command sets the jail as your current position
    * /settown ; this command sets the town (out of jail point) as your current position
    * /unjail <player> ; this command unjails a player and moves them to the town location

    * JailPlugin.jail: Authorizes a user to jail another user.
    * JailPlugin.unjail: Authorizes a user to unjail a jailed user.
    * JailPlugin.setjail: Authorizes a user to set the jail point.
    * JailPlugin.settown: Authorizes a user to set the town point.

    Version 1:
    * Jail plugin is born!
    * Added /jail
    * Added /setjail
    * Added /settown
    * Added /unjail

    Notes: I was asked to change the name of this plugin, but I really don't know what to call it other than Jail, it's a simple jail meant to be used in conjunction with other plugins to secure the jail area.
    Last edited by a moderator: Nov 11, 2016
  2. Offline


    Multiple jails?
  3. Offline


    That's definitely a possibility, didn't think that it was necessary when writing this for my server.
  4. Offline


    Please change the name. There is already a plugin named "Jail".

    Things you need to do to get this into the plugin releases section:
    1. Dev-Bukkit page.

    1. Dropbox download link instead of a Mediafire one please.
    2. Pictures/Videos.
  5. Offline


    Permissions doesnt work with pex
  6. There's already a plugin named Jail, consider renaming.
  7. Offline


    I hate to say it, but this is a pretty useless plugin when people who have been jailed are able to warp away.
    Also if you set a jail point inside a building and the doors aren't locked with LWC they can simply walk right out.

    With all due respect to the author, this needs work.
  8. Offline


    Thanks for the feedback, this plugin was never intended to meet a certain set of requirements or re-do what others already do. I wrote it for my own server and as such was able to take advantage of pre-existing functionality in plugins I was already using. WorldEdit/Guard allowed me to handle all of the zone permissions for the jail so there was no reason to write that into this plugin.

    In fact, the only reason I wrote it was because there wasn't one with a persistent timer that could be paused when the player logged out.
  9. Yes there is, the one with the same name as yours which I linked above :p
  10. Offline


    Well, I didn't see that when I was looking for a plugin, and honestly don't see it on their page now; maybe I'm blind. Oh well.
  11. Offline


    Please use a friendly download link
  12. @jihadjonny Pff I think they removed the option, I know they had the option to require players to stay online to finish the sentence but now I can't find anything about it, neither in the source code :/ well, anyway.

    @md_5 what's wrong with mediafire ? :confused: from all the annoying hosts out there this is a good one.
  13. Offline


    I posted my source so that anyone can see how I went about pausing a timer in java (By default you cannot)

Share This Page