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

Implement a justice system on your server / network

  1. Nutty101
    Tested Minecraft Versions:
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    • 1.14
    • 1.15
    • 1.16
    Source Code:
    https://github.com/Nutty101/NPC-Police
    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 a 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 the 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 auto-flag players with 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)
    • 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 Sentinel use the following commands:
        • /trait sentinel
      • type /np npc
        • Check the box for guard, should show a checkmark now
        • Check the box for LOS Attack
    • 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 you 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:
    • Pigcraft Reborn @ mc.pigcraftreborn.net (Running on the PVP server) [1-11-2020 Offline?]

    Enjoy!
    Capture.PNG
    JailPlugin.gif

    Stats:
    [​IMG]
    Enjoy!

    * 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 :)

Recent Reviews

  1. heyybro
    heyybro
    4/5,
    Version: 2.4.3
    Are there placeholders to set in a scoreboard? like featherboard or quickboard? If you responde me i'll put 5 stars
    1. Nutty101
      Author's Response
      Not to be rude, but saying you will reward 5 stars for responding on here is umm childish. Yes, there are placeholders on the WIKI, no I cannot put the link in here. Hit me up on discord, or in the discussion forums. Be amazed quick of support you get by just asking in the proper channels.
  2. oldmandan777
    oldmandan777
    5/5,
    Version: 2.3.4
    Developer is amazing. Super friendly, quick response. Love this plugin, adds depth to NPCs and the jail system is easy to navigate!
  3. kashten
    kashten
    4/5,
    Version: 2.3.2
    why is my language setting not changing its going back to default? please get back to me thanks
    1. Nutty101
      Author's Response
      Replied to your PM The issue is that you cannot edit the en-def file. You need to make your own and then only apply the lines and sections you want to change. I will then read the default language if it does not exist in the new language file. Also, reviews are not for support :)
  4. jfdkjfakdkm
    jfdkjfakdkm
    5/5,
    Version: 2.2.140
    Yes, the plugin works, but it wasn't what I expected, I wanted players to be cops as well, and moderators to jail other players that I don't see any sense in the plugin. I don't know if you could upgrade to make it more fun
    1. Nutty101
      Author's Response
      That is the #1 request of this plugin. It's in the works, but it's not going to be a simple update on this plugin. Due to where this plugin started as it was really only for NPC's, i am re-writing it all ground up to allow for things like this. The down side, is that the upgrade path will be not be straight forward. I will maintain both versions for a while though to allow others to utilize this one in future MC versions.

      For staffers you can use commands like /np setbounty # and /np jailplayer to send them to jail. Setjailseconds is handy to ensure they cannot just pay their way out.
  5. LoJoSho
    LoJoSho
    5/5,
    Version: 2.2.138
    A unique, fun, and amazing plugin that my players both love and hate! It is an amazing addition as it provides so many more possibilities for an RPG such as ours!

    Thank you so much!
    1. Nutty101
      Author's Response
      Glad to hear it! Always good to see people finding a fun use of the plugin.
  6. Jwguy
    Jwguy
    5/5,
    Version: 2.2.123
    A wonderful plugin, and with one of the most supportive authors I've had the pleasure of working with. Clean Code, Good Support, and a unique and novel idea that I've personally had a lot of fun with on our Survival RPG server.
    1. Nutty101
      Author's Response
      Sorry for the delay, been busy. Thanks for the review and hopefully its added a bit to your server's environment.
  7. attila1405
    attila1405
    4/5,
    Version: 2.2.123
    Hi, At server startup, it gives me no error. When the first player enters, he gives me this error:



    [14:28:05 WARN]: at net.livecar.nuttyworks.npc_police.database.Database_MySql.getUserData(Database_MySql.java:307)
    [14:28:05 WARN]: at net.livecar.nuttyworks.npc_police.database.Database_MySql.processQueue(Database_MySql.java:217)
    [14:28:05 WARN]: at net.livecar.nuttyworks.npc_police.database.Database_MySql.run(Database_MySql.java:174)
    [14:28:05 WARN]: at java.lang.Thread.run(Thread.java:748)
    1. Nutty101
      Author's Response
      Put this in the discussion area for me. Reviews are not a place I can assist you.
  8. StripeyCat
    StripeyCat
    2/5,
    Version: 2.2.84
    I dont know why but whenever i try to run an npcpolice command it always just says: /npcpolice help in the chat
    1. Nutty101
      Author's Response
      Humm. Either i didn't load or you don't have any jails. Msg me in the discussion area. Easy fix ;)
  9. Shadowpauler
    Shadowpauler
    5/5,
    Version: 2.2.84
    Isn't working for 1.13.2 for some reason, but I still love this plugin. Please do fix the issue, as it should be obvious on a quick test on 1.13.2 and thank you!
    1. Nutty101
      Author's Response
      Lots of people are using it on 1.13.2. Hit me up in the discussion with your errors.
  10. NazzyDragon
    NazzyDragon
    5/5,
    Version: 2.2.49
    Author is an absolute doll. He might be busy sometimes, but when he isn't, he really works with you to fix issues. Glad I could help fix a big one!

    Seriously, buy this guy a beer. c: