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 Ajaxan Ajaxan Aug 07, 2014 at 05:24 UTC - 0 likes

    I've found that I can't set npc health above 20. I use the normal command, (/sentry health #) but no matter what they die after taking 20 damage. Is this just the way it is or is there something I'm missing?

    Back to work!

  • Avatar of mcmonkey4eva mcmonkey4eva Aug 07, 2014 at 00:56 UTC - 0 likes

    @FrancoEsFeliz: Go

    They only walk to points within their pathrange (/npc pathrange) defaulting to 25. If you want to avoid teleportation, move waypoints closer together.

  • Avatar of FrancoEsFeliz FrancoEsFeliz Aug 06, 2014 at 23:24 UTC - 0 likes

    I have a problem. When i spawn a npc, he teleports to the next waypoint. How do I make he walk?

  • Avatar of omermarvel omermarvel Aug 06, 2014 at 15:52 UTC - 0 likes

    @jrbudda: Go

    help me 1.7.9 my server but does not work

  • Avatar of hackercore hackercore Aug 04, 2014 at 23:54 UTC - 0 likes

    Is there any way for a Sentry not to deal or take damage in Worldguard pvp-protected regions?

  • Avatar of mcmonkey4eva mcmonkey4eva Aug 04, 2014 at 22:14 UTC - 0 likes

    @CoconutJJ: Go

    Wrong Sentry version for 1.6.4 -> get sentry v1.5.3 or 1.5.4

    Last edited Aug 04, 2014 by mcmonkey4eva
  • Avatar of CoconutJJ CoconutJJ Aug 04, 2014 at 14:44 UTC - 0 likes

    I got this error while enabling sentry on my server for 1.6.4: 7:40:42 AM [SEVERE] java.lang.NoClassDefFoundError: net/minecraft/server/v1_6_R2/Packet 7:40:42 AM [SEVERE] at net.aufdemrand.sentry.SentryTrait.ensureInst( 7:40:42 AM [SEVERE] at net.aufdemrand.sentry.SentryTrait.onSpawn( 7:40:42 AM [SEVERE] at net.citizensnpcs.api.npc.AbstractNPC.addTrait( 7:40:42 AM [SEVERE] at net.citizensnpcs.api.npc.AbstractNPC.addTrait( 7:40:42 AM [SEVERE] at net.citizensnpcs.commands.TraitCommands.addTrait( 7:40:42 AM [SEVERE] at net.citizensnpcs.commands.TraitCommands.toggle( 7:40:42 AM [SEVERE] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 7:40:42 AM [SEVERE] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 7:40:42 AM [SEVERE] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 7:40:42 AM [SEVERE] at java.lang.reflect.Method.invoke(Unknown Source) 7:40:42 AM [SEVERE] at net.citizensnpcs.api.command.CommandManager.executeMethod( 7:40:42 AM [SEVERE] at net.citizensnpcs.api.command.CommandManager.execute( 7:40:42 AM [SEVERE] at net.citizensnpcs.api.command.CommandManager.executeSafe( 7:40:42 AM [SEVERE] at net.citizensnpcs.Citizens.onCommand( 7:40:42 AM [SEVERE] at org.bukkit.command.PluginCommand.execute( 7:40:42 AM [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch( 7:40:42 AM [SEVERE] at org.bukkit.craftbukkit.v1_6_R3.CraftServer.dispatchCommand( 7:40:42 AM [SEVERE] at net.minecraft.server.v1_6_R3.PlayerConnection.handleCommand( 7:40:42 AM [SEVERE] at 7:40:42 AM [SEVERE] at net.minecraft.server.v1_6_R3.PlayerConnection.a( 7:40:42 AM [SEVERE] at net.minecraft.server.v1_6_R3.Packet3Chat.handle(SourceFile:49) 7:40:42 AM [SEVERE] at net.minecraft.server.v1_6_R3.NetworkManager.b( 7:40:42 AM [SEVERE] at net.minecraft.server.v1_6_R3.PlayerConnection.e( 7:40:42 AM [SEVERE] at net.minecraft.server.v1_6_R3.ServerConnection.b(SourceFile:37) 7:40:42 AM [SEVERE] at net.minecraft.server.v1_6_R3.DedicatedServerConnection.b(SourceFile:30) 7:40:42 AM [SEVERE] at net.minecraft.server.v1_6_R3.MinecraftServer.t( 7:40:42 AM [SEVERE] at net.minecraft.server.v1_6_R3.DedicatedServer.t( 7:40:42 AM [SEVERE] at net.minecraft.server.v1_6_R3.MinecraftServer.s( 7:40:42 AM [SEVERE] at 7:40:42 AM [SEVERE] at 7:40:42 AM [SEVERE] Caused by: java.lang.ClassNotFoundException: net.minecraft.server.v1_6_R2.Packet 7:40:42 AM [SEVERE] at 7:40:42 AM [SEVERE] at 7:40:42 AM [SEVERE] at java.lang.ClassLoader.loadClass(Unknown Source) 7:40:42 AM [SEVERE] at java.lang.ClassLoader.loadClass(Unknown Source) 7:40:42 AM [SEVERE] ... 30 more

  • Avatar of Proxwian Proxwian Aug 01, 2014 at 14:53 UTC - 0 likes

    Help! Sentry npc permanently respawn after die and i can't change respawn delay with "/sentry respawn" or "/npc respawn". It's a big trouble for me

  • Avatar of mcmonkey4eva mcmonkey4eva Jul 29, 2014 at 04:51 UTC - 0 likes

    @Mexbotdude: Go

    Update: It's been fixed in the /new/ latest Citizens build (I just spoke with the developer of C2 and he pushed a fix)

    EDIT: He fixed the error behind the issue at least. The error message may still show, but it's /definitely/ safe to ignore now.

    Last edited Jul 29, 2014 by mcmonkey4eva
  • Avatar of mcmonkey4eva mcmonkey4eva Jul 28, 2014 at 22:20 UTC - 0 likes

    @Mexbotdude: Go

    You can probably just ignore it for now - it shouldn't harm anything.

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