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.

Builds for CraftBukkit 1.6+ are on the wiki page!


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 baemboo baemboo Mar 25, 2014 at 22:26 UTC - 0 likes

    We got a problem with multiverse worlds. We got no problems in our main world called "world", but sentry and quester npcs dont work in other worlds. help would be nice

  • Avatar of mcmonkey4eva mcmonkey4eva Mar 25, 2014 at 00:16 UTC - 1 like

    @chsedv: Go

    Update on my previous comment, sooner than I expected:

    a 1.7.5 compatible build (Sentry v1.8.1) is available on the wiki at and as build #8 on the Citizens development repo

  • Avatar of mcmonkey4eva mcmonkey4eva Mar 24, 2014 at 22:17 UTC - 1 like

    @chsedv: Go

    I'll be releasing a 1.7.5-compat. dev build on the wiki soon... after confirming Denizen and Citizens work 100% on 1.7.5, as those are higher priority.

    (Likely won't be an official build on this DBO page any time soon, unless jrbudda un-dies again)

  • Avatar of chsedv chsedv Mar 24, 2014 at 19:13 UTC - 0 likes

    Not working with Bukkit 1.7.5-R01. Pls Update

    [20:01:50] [Server thread/INFO]: [Citizens] The trait sentry failed to load for NPC ID: 248. [20:01:50] [Server thread/ERROR]: [Citizens] An exception occurred while the trait sentry was spawning for NPC ID 248. [20:01:50] [Server thread/WARN]: java.lang.NoClassDefFoundError: net/minecraft/server/v1_7_R1/World [20:01:50] [Server thread/WARN]: at net.aufdemrand.sentry.SentryTrait.ensureInst(Sentr [20:01:50] [Server thread/WARN]: at net.aufdemrand.sentry.SentryTrait.onSpawn(SentryTr [20:01:50] [Server thread/WARN]: at net.citizensnpcs.npc.CitizensNPC.spawn(CitizensNPC .java:196) [20:01:50] [Server thread/WARN]: at net.citizensnpcs.npc.CitizensNPC.load(CitizensNPC. java:114) [20:01:50] [Server thread/WARN]: at net.citizensnpcs.api.npc.SimpleNPCDataStore.loadIn to( [20:01:50] [Server thread/WARN]: at net.citizensnpcs.Citizens$ [20:01:50] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_7_R2.scheduler.CraftTask .run( [20:01:50] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_7_R2.scheduler.CraftSche duler.mainThreadHeartbeat( [20:01:50] [Server thread/WARN]: at net.minecraft.server.v1_7_R2.MinecraftServer.v(Min [20:01:50] [Server thread/WARN]: at net.minecraft.server.v1_7_R2.DedicatedServer.v(Ded [20:01:50] [Server thread/WARN]: at net.minecraft.server.v1_7_R2.MinecraftServer.u(Min [20:01:50] [Server thread/WARN]: at [20:01:50] [Server thread/WARN]: at net.minecraft.server.v1_7_R2.ThreadServerApplicati [20:01:50] [Server thread/WARN]: Caused by: java.lang.ClassNotFoundException: net.minecraft.server.v1_7_R1.World [20:01:50] [Server thread/WARN]: at ( [20:01:50] [Server thread/WARN]: at ( [20:01:50] [Server thread/WARN]: at java.lang.ClassLoader.loadClass(Unknown Source) [20:01:50] [Server thread/WARN]: at java.lang.ClassLoader.loadClass(Unknown Source) [20:01:50] [Server thread/WARN]: ... 13 more

  • Avatar of CanandianVolchik CanandianVolchik Mar 24, 2014 at 03:13 UTC - 0 likes

    Thnx mc! Updating targets fixed gluich. Thank you!

  • Avatar of mcmonkey4eva mcmonkey4eva Mar 23, 2014 at 19:07 UTC - 0 likes

    @CanandianVolchik: Go

    - First, make sure you've added "entity:monster" or "player:volchik" or whatever so it knows to attack you.

    - Second, Sentry has quite a few weird bugs and limitations... one of which is that you have to wait about a minute after changing its targets before it will really notice them. So set it up, wait a bit, then leave and come back. It might help to let it retaliate against an attack, then either win or have its attacker get away, which should also force it to update its target settings and beginning attacking as planned after.

  • Avatar of CanandianVolchik CanandianVolchik Mar 23, 2014 at 09:03 UTC - 0 likes

    Hey guys. I have wierd problem. My sentres will not attack unless provoked by attack first.
    Basically even they have a monsters as a default target, they do not attack monster until monster attacks them first. Same with people. If I make player or even myself a target. They don't attack until player hits them. I can't figure out what is wrong. Is anyone had problem like that before? Please help me. I am out of ideas.

  • Avatar of mcmonkey4eva mcmonkey4eva Mar 22, 2014 at 17:37 UTC - 0 likes

    @EmpiresCraft: Go

    Yup, its mob-handling functions could definitely do something like that if you don't disable it for horse-type entities... I'm not so sure pTweaks has an option to specifically ignore individual mobs, so you might have to disable mob handling entirely and find a different plugin to deal with that.

    Last edited Mar 22, 2014 by mcmonkey4eva
  • Avatar of lucasbuck2 lucasbuck2 Mar 22, 2014 at 12:21 UTC - 0 likes

    @mcmonkey4eva: Go

    Thanks for all the advice!

  • Avatar of EmpiresCraft EmpiresCraft Mar 22, 2014 at 07:24 UTC - 0 likes

    @mcmonkey4eva: Go

    So possibly a lag clearing plugin, suck as pTweaks?

Your favorite Brigade?

  1. Choice:

  1. Results
  2. 0 comments


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