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.


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 HushedDispatch HushedDispatch Oct 02, 2014 at 05:48 UTC - 0 likes

    Hello there Sentry Boss gods. I am using Sentry 1.8.2 and love the stuff I can do with it but I am running into an issue. I did the following

    /npc create Knight

    /trait sentry

    /sentry mount

    at this point I had a dude riding a horse. Cool beans. But the they wont move. Even when I hit the player or the horse. The Rider hits me when I am nearby but he is all helpless since his horse is useless. Is there a fix for this?

    I also haven't found a way to equip/unequip things from the horse.

    all other mounts work fine. Only horses give me issues. I'd also like to mention that horses auto spawn with saddles from /sentry mount

    Last edited Oct 02, 2014 by HushedDispatch
  • Avatar of mcmonkey4eva mcmonkey4eva Sep 23, 2014 at 23:43 UTC - 0 likes

    @MrEASlol: Go

    Citizens error, not Sentry. Ask for help from the C2 team, not us.

  • Avatar of MrEASlol MrEASlol Sep 23, 2014 at 23:16 UTC - 0 likes

    [19:13:29 INFO]: [Citizens] Could not fetch NMS field b: b. [19:13:29 INFO]: [Citizens] Could not fetch NMS field bc: bc. [19:13:29 INFO]: [Citizens] Could not fetch NMS field b: b. [19:13:29 INFO]: [Citizens] Could not fetch NMS field n: n. [19:13:29 INFO]: [Citizens] Could not fetch NMS field m: m. [19:13:29 INFO]: [Citizens] Could not fetch NMS field e: e. [19:13:29 INFO]: [Citizens] Could not fetch NMS field e: e. [19:13:29 INFO]: [Citizens] Could not fetch entity id mapping fields: null. [19:13:29 INFO]: [Citizens] Could not fetch NMS field d: d.

    these are the errors i got from my server console, i couldnt put it into pastebin because it was under heavy load for some reason, my server runs cauldron, i assume you know what that is.

  • Avatar of mcmonkey4eva mcmonkey4eva Sep 23, 2014 at 22:56 UTC - 0 likes

    @MrEASlol: Go

    Java* what error? Post it (pastebin)

  • Avatar of MrEASlol MrEASlol Sep 23, 2014 at 22:08 UTC - 0 likes

    Does this work with cauldron? i keep trying to create a citizen in cauldron and it gives me a javascript error.

  • Avatar of mcmonkey4eva mcmonkey4eva Sep 23, 2014 at 01:19 UTC - 0 likes

    @aoe2exp: Go

    Not currently, no :(

    definitely on the TODOList though.

  • Avatar of aoe2exp aoe2exp Sep 22, 2014 at 22:10 UTC - 0 likes


    Is it possible to group them for stats? like all archers, guards, etc? it'd make it real easy to change all archers' range at once.

    Thank you and great work!

    Last edited Sep 22, 2014 by aoe2exp
  • Avatar of mcmonkey4eva mcmonkey4eva Sep 20, 2014 at 00:28 UTC - 1 like

    @flyingfencepost: Go

    /npc skin <skinname>

    skin search:

  • Avatar of flyingfencepost flyingfencepost Sep 19, 2014 at 14:38 UTC - 0 likes

    How do i get my sentrys to have skins like its shown here?

Your favorite Brigade?

  1. Choice:

  1. Results
  2. 1 comment


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