Sentry for Citizens2

Sentry for Citizens2

Sentry is a character plugin for the NPC plugin Citizens2. With Sentry, NPC's can be set to guard areas or act as bodyguards. Hostile targeting, retaliation, and a variety of options and stats allow a Sentry NPC to be customized to almost any guarding or combat situation.


Sentries Can:

  • Attack monsters, players, and groups automatically. Sentry also has built-in support for Factions, Towny, War and SimpleClans
  • Kill, and be killed by, players, monsters, and the environment.
  • Guard locations, paths, players, or other NPCs.
  • Use ranged or melee weapons. Shoot arrows, fireballs, snowballs, eggs, lightning, and potions with deadly accuracy.
  • Be configured with stats such as Strength, Health, Armor, Speed, Range and even Night Vision!
  • Ride mounts!
  • Work with Denizen to become Bosses and Quest NPCs that run scripts upon death.


  • Install Citizens2 Please use latest build
  • Place Sentry.jar in your minecraft /plugins/ directory. Start your server.
  • Create a NPC with Citizens and give it the 'sentry' trait.
    •  /npc create Town Guard --trait sentry 
  • Customize your Sentry's stats and options and you're ready to go.

A full list of commands and options is available on the Citizens 2 Wiki


Sentry makes a config.yml in the plugins/Sentry folder on first load. Use this to tailor Sentry to your server. You can:

  • Set defaults for new sentries
  • Change or disable the item used for various attack types
  • Add potion effects like slow or blindness to certain Sentry weapons.
  • Add armor, strength and speed buffs to armor and weapons for Sentries.
  • Set critical hit chances and messages.

The config.yml is commented with instructions.

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of mcmonkey4eva mcmonkey4eva Jul 12, 2014 at 22:40 UTC - 0 likes

    @tdbulldog: Go

    Add target 'event:pvp' and give it a sword.

  • Avatar of tdbulldog tdbulldog Jul 12, 2014 at 20:21 UTC - 0 likes

    I want the Sentry to be in an area, and watch for players engaging in PVP, and if the players are, quickly run over, attack to kill both players, then after they PVP'ers dead, return to their post. Is this possible?

  • Avatar of mcmonkey4eva mcmonkey4eva Jul 11, 2014 at 19:14 UTC - 0 likes

    @crazylemon97: Go

    Post the error that showed in your console?

  • Avatar of crazylemon97 crazylemon97 Jul 11, 2014 at 13:22 UTC - 0 likes how to fix this please help

  • Avatar of Mexbotdude Mexbotdude Jul 05, 2014 at 15:32 UTC - 0 likes

    @mcmonkey4eva: Go

    I removed the trait health from the npc but it still won't work and the sentry respawns again after killing him. The only way to stop this is when I do /sentry respawn 0

  • Avatar of mcmonkey4eva mcmonkey4eva Jul 05, 2014 at 01:46 UTC - 0 likes

    @Mexbotdude: Go

    Select the NPC and /trait health

    should remove Denizen's respawn handling entirely.

    (Unless you have a script doing it. In which case, remove the script)

  • Avatar of Mexbotdude Mexbotdude Jul 04, 2014 at 22:37 UTC - 0 likes

    @mcmonkey4eva: Go

    It is Denizen, but is there any way to disable it?

  • Avatar of mcmonkey4eva mcmonkey4eva Jul 04, 2014 at 20:15 UTC - 0 likes

    @Mexbotdude: Go

    Do you possibly have:

    - another plugin that could force a respawn

    - another Citizens plugin like Denizen that might respawn the NPC (EG, Denizen's health trait)

    Also, did you use "/sentry info" to confirm the respawn delay actually got set?

  • Avatar of Mexbotdude Mexbotdude Jul 04, 2014 at 17:53 UTC - 0 likes

    I Have a problem with the 1.8.2 version

    When I make an npc and add to him /trait sentry and I type sentry spawn everything works fine. But when I type /sentry respawn (example 60) the respawn delay should be in 60 seconds. But instead of this after I kill the npc he automatically respawns again without using the 60 secs delay.

    Hope someone could help me :|

  • Avatar of satisfiction6794 satisfiction6794 Jun 27, 2014 at 01:23 UTC - 1 like

    I will love you long time if you can make crackshot weapons hurt sentries.

    Please please pleeeeaaasssseee.

    Here is their API stuff:

    I like.. need this for my life to continue.

    Last edited Jun 27, 2014 by satisfiction6794

Your favorite Brigade?

  1. Choice:

  1. Results
  2. 0 comments


Date created
Sep 11, 2012
Last update
Jun 03, 2014
Development stage
  • enUS
Public Domain
Curse link
Sentry for Citizens2
Recent files