NPC Police (Policing, Bounty, Jails, and more!) 2.1.8

Implement a justice system on your server / network

  1. Nutty101
    Tested Minecraft Versions:
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    Source Code:
    https://github.com/Nutty101/NPC-Police


    2017-07-08: NOTICE: I have been slammed with some major changes in my life lately, so things are not being answered or fixed as quickly. I am still active with this thing, but please bear that in mind. I'm not ignoring, just beyond busy with life.

    About the plugin:

    NPC Police provides servers a system for implementing a judicial system. It provides a structured jail system, NPC based police force, incarceration system, bounties, and general mayhem deterrent.

    Features:
    • Base settings configurable at many levels.
      • Server (Config.yml), World, Regions, Jail, and per NPC
    • Customization of bounties
      • based on damage dealt, murders of NPCs / Players, PVP, Escapes
      • Add or subtract bounties based on status, (Wanted, In Jail, Escaped, in cell at night/day)
    • Define your own bounty to time served
      • Global, per World, or per jail!
    • Customizable message system
      • Limit alerts/notices based on distance to the activity, or jail
      • Set the delay or time it will take to reach each player based on distance (News can travel fast, or slow, you decide)
    • Define what NPCs are protected globally, Regions, or per NPC
    • Enable NPCs to only attack what they can see
      • Custom line of sight system that can also see through windows, iron bars, ice based on how transparent they are.
    • Ability to confiscate the player's inventory upon arrest, as well as multiple methods to return it.
      • Ability to configure items as banned, and they are never returned upon arrest.
    • Customizable commands for many events
      • Globally or per world:
        • NPC Warnings, Alerting Guards, Alerting (No guards in range), NPC Murders, Players becoming (Wanted, Arrested, Escaped, Released)
      • Per Jail
        • Arrested, Escaped, Released
    • Each jail can be customized
      • Jails name
      • Multiple cell locations
      • Bounty per second spent
        • Out of a cell during the day or night
        • In the jail
      • Bounty per PVP damage in jail
    • This system also extends some of your other plugins feature sets
      • Worldguard (More flags available to support customization of your worlds)
        • Set the bounties for PVP, NPC Damage, NPC Murders, Time spent Escaped or Wanted
        • Set NPC defaults (Does not override settings on an NPC directly, just at the server or world level)
        • Define regions to autoflag players to a status upon entering.
          • Ability to require line of sight with an NPC. Transparent blocks, glass etc all have levels that affect sight.
          • Add a bounty when flagged
          • Send a message to the player when caught!
      • PlaceholderAPI
        • Offers several variables to display elsewhere.
          • Users: Bounty, TotalBounty. Current Status, Prior Status, Current JailName, Last assault/Murder/Arrested date or time in hh:mm:ss, Times Arrested/Escaped/Murders
          • Global: Most wanted user (Bounty, Status, Name), Closest Jail
      • BetonQuest
        • Provides extra Events, Objectives, and Conditions to build even more in depth quests/stories
      • LeaderHeads
        • Users love nothing more than looking at who is the worst or best criminal across your network (MySql, or Server via SQLite)
        • Top Current Bounties, Latest/Most Arrests, Latest/Most Escapes, Most Murders, Highest total bounties

    Required Plugins:
    1. Vault (Economy & Permissions)
    2. Citizens2 (NPC interaction)
    3. WorldGuard (Jail region management)
    4. Sentinel
    Quick Tutorial:
    • Download the latest version of the plugin and place it into your plugins folder.
    • Start the server, it will auto-create a default config (plugins/jailer/config.yml)
    • Edit the file and setup the worlds (or copy the default for each that you want the plugin to function in)
    • Using a permissions plugin, make sure you have the three groups that are in the config (Defaults: WANTEDCRIMINALS, JAILED, FUGITIVES)
    • Create a worldguard region covering your jail area
      • /region create tutorialjail
    • Create a jail /np createjail {short name} {region name} {Display Name}
      • /np createjail tutjail tutorialjail Tutorial Jail
    • Now add cells, stand in the cell where you want players to be sent. type /np addcell
    • Create an NPC in or around your jail that players can access from inside
      • Select that NPC and type /np npc
      • Click on the X inside the menu option. It should turn to a checkmark. That person now accepts right clicking.
    • Create an NPC outside the jail
      • equip them with a weapon
      • For sentry use the following commands:
        • /trait sentry
        • type /sentry target add group:WANTEDCRIMINALS
        • type /sentry target add group:FUGITIVES
      • For Sentinel use the following commands:
        • /trait sentinel
        • /sentinel addtarget group:WANTEDCRIMINALS
        • /sentinel addtarget group:FUGITIVES
      • type /np npc and check the box for guard, should show a checkmark now
    • create another NPC to attack within 25 blocks of the guard
      • Attack it, and you should see a warning or bounty. The Guard should start attacking once your harm the NPC enough.
      • When in jail, right click the NPC you created in there and a menu should come up.
    • Quick visual layout of a simple jail.
      • 1: I tend to place the judge/jailer in a location that both outside players and arrested players can interact with them.
      • 2: Cells are the locations i use to set where the player will be sent to after being arrested.
      • 3: Create a method to get out, i use iron doors to ensure the NPC guards cannot get into the jail (Tend to use a set of two to ensure they do not get into the jail)
        • If a player leaves the jail region, they will be converted to escaped and using Sentinel or sentry you can have the guards hunt them down.
    upload_2016-4-25_22-52-28.png


    Videos of features:

    Servers running this plugin:
    • Let me know, I will add you to this list.

    Enjoy!
    Capture.PNG
    JailPlugin.gif

    * This plugin uses the plugin Metrics system. If you want to disable it, open /PluginMetrics/Config.yml and set opt-out to true. Mostly for my curiosity :)
    Diclo, LingXin, Biesterfels and 2 others like this.

Recent Reviews

  1. zDan_YT
    zDan_YT
    5/5,
    Version: 2.1.4
    Yes! It's the perfect plugin that I've been looking for but can you make it so that if players are seen with some kind of items near them, they will start attacking them?

    For example, i need to have guards attack people that have drugs in their inventory. Could you please do that?
    1. Nutty101
      Author's Response
      Let me look Into it for you, so in their inventory, or in their hands?
  2. Coolkc456
    Coolkc456
    5/5,
    Version: 2.1.3
    Dev responded to a major issue in a previous version and fixed it immediately. No other problems were found with this plugin and the concept is truly one of a kind. A must-have for any RPG community server.
    1. Nutty101
      Author's Response
      Appreciated you working with me to figure that out. I always want to ensure things are as good as they can be. Let me know if you have ideas, questions, etc.. I may not answer right away, but rest assured that I will.
  3. mminnett
    mminnett
    4/5,
    Version: 2.1.1
    Great plugin. It works very well, but I had one problem/question. Does this work with multiverse? I had a prison in one world, and just a normal world in the other, but the cops wouldn't arrest, they would just kill. It would be perfect if it worked with multiverse. Otherwise, amazing plugin, great job!
  4. Viktr
    Viktr
    5/5,
    Version: 2.0.35
    Love it customized it to work with my ban system and it works great thanks. -Viktr
    1. Nutty101
      Author's Response
      Glad you are enjoying it. If you ever run into things you want to be added, let me know. Always open ears :)
  5. xvrlee
    xvrlee
    5/5,
    Version: 2.0.32
    1.7.10 support ?
    .........................................................................
    1. Nutty101
      Author's Response
      Doubt I could with some of the stuff I am doing. Between Citizens, Worldguard, and Spigot I doubt. 1.8.3 is really the lowest it supports at the moment.
  6. StereoN
    StereoN
    5/5,
    Version: 2.0.31
    This plugin looks great, but in my 1.12.1 server /np addcell or /np jail doesn't work at all, it doesn't spell out any errors it just doesn't register i think. And the language file is hell if you want to modify it, but I will rate 5 stars because I trust that the dev. will soon fix these issues, I really like the concept of this plugin.
    1. Nutty101
      Author's Response
      I think I have resolved the addcell issues you had happen. As for the language files, PM me or hit me up in the discussion area. Let's see what we can do to make things easier on that front. :)
  7. Mtubba
    Mtubba
    5/5,
    Version: 2.0.30
    Works great and is a lot of fun in my server. Players now have to fallow the law! XD 5 Stars
    1. Nutty101
      Author's Response
      Well they don't HAVE to, just there are penalties for not ;)
  8. zorrowu
    zorrowu
    5/5,
    Version: 2.0.30
    Very good plugin.
    It make lot of fun and possible in minecraft.
    It will be better.
  9. Lertu
    Lertu
    5/5,
    Version: 2.0.30
    Im loving the plugin man :D, Can you add support with the plugin vehicles and make cops come in cars or helicopters?
    1. Nutty101
      Author's Response
      That would be awesome, but crazy hard to pull off with NPCs. :( Glad you like it though.
  10. Lolio
    Lolio
    5/5,
    Version: 2.0.29
    I actually like the plugin but it wont work for 1.8. Do you have any you could tell me which work?
    1. Nutty101
      Author's Response
      Should work, PM me or in the plugins description page there is a Discord link if you use that. I will get it working for you :)