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 MarioTimeSTeam MarioTimeSTeam Feb 11, 2015 at 17:10 UTC - 0 likes
  • Avatar of mcmonkey4eva mcmonkey4eva Feb 10, 2015 at 20:06 UTC - 0 likes

    @MarioTimeSTeam: Go

    Wrong version of Sentry. Get the correct one here:

  • Avatar of MarioTimeSTeam MarioTimeSTeam Feb 10, 2015 at 18:47 UTC - 0 likes

    What is this ?????

    When i wold made a Guard it say this in the consol:

    [19:40:57] [Server thread/WARN]: java.lang.NoClassDefFoundError: net/minecraft/server/v1_7_R3/Packet [19:40:57] [Server thread/WARN]: at net.aufdemrand.sentry.SentryTrait.ensureInst( [19:40:57] [Server thread/WARN]: at net.aufdemrand.sentry.SentryTrait.onSpawn( [19:40:57] [Server thread/WARN]: at net.citizensnpcs.api.npc.AbstractNPC.addTrait( [19:40:57] [Server thread/WARN]: at net.citizensnpcs.api.npc.AbstractNPC.addTrait( [19:40:57] [Server thread/WARN]: at net.citizensnpcs.commands.TraitCommands.addTrait( [19:40:57] [Server thread/WARN]: at net.citizensnpcs.commands.TraitCommands.toggle( [19:40:57] [Server thread/WARN]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [19:40:57] [Server thread/WARN]: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [19:40:57] [Server thread/WARN]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [19:40:57] [Server thread/WARN]: at java.lang.reflect.Method.invoke(Unknown Source) [19:40:57] [Server thread/WARN]: at net.citizensnpcs.api.command.CommandManager.executeMethod( [19:40:57] [Server thread/WARN]: at net.citizensnpcs.api.command.CommandManager.execute( [19:40:57] [Server thread/WARN]: at net.citizensnpcs.api.command.CommandManager.executeSafe( [19:40:57] [Server thread/WARN]: at net.citizensnpcs.Citizens.onCommand( [19:40:57] [Server thread/WARN]: at org.bukkit.command.PluginCommand.execute( [19:40:57] [Server thread/WARN]: at org.bukkit.command.SimpleCommandMap.dispatch( [19:40:57] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_8_R1.CraftServer.dispatchCommand( [19:40:57] [Server thread/WARN]: at net.minecraft.server.v1_8_R1.PlayerConnection.handleCommand( [19:40:57] [Server thread/WARN]: at net.minecraft.server.v1_8_R1.PlayerConnection.a( [19:40:57] [Server thread/WARN]: at net.minecraft.server.v1_8_R1.PacketPlayInChat.a( [19:40:57] [Server thread/WARN]: at net.minecraft.server.v1_8_R1.PacketPlayInChat.a( [19:40:57] [Server thread/WARN]: at [19:40:57] [Server thread/WARN]: at java.util.concurrent.Executors$ Source) [19:40:57] [Server thread/WARN]: at Source) [19:40:57] [Server thread/WARN]: at net.minecraft.server.v1_8_R1.MinecraftServer.z( [19:40:57] [Server thread/WARN]: at net.minecraft.server.v1_8_R1.DedicatedServer.z( [19:40:57] [Server thread/WARN]: at net.minecraft.server.v1_8_R1.MinecraftServer.y( [19:40:57] [Server thread/WARN]: at [19:40:57] [Server thread/WARN]: at Source) [19:40:57] [Server thread/WARN]: Caused by: java.lang.ClassNotFoundException: net.minecraft.server.v1_7_R3.Packet [19:40:57] [Server thread/WARN]: at [19:40:57] [Server thread/WARN]: at [19:40:57] [Server thread/WARN]: at java.lang.ClassLoader.loadClass(Unknown Source) [19:40:57] [Server thread/WARN]: at java.lang.ClassLoader.loadClass(Unknown Source) [19:40:57] [Server thread/WARN]: ... 29 more

    What shuld i do

    Sry for my bad english

    PLS help me

  • Avatar of Adurath Adurath Jan 27, 2015 at 20:18 UTC - 0 likes

    Hey i have some problem with sentry, i use build 1.8.2 build 3 for 1.7.10. I have create a example sentry for testing feight, but the npc is hard laggy when he hit players. He move like a player with 999 ping.

    How can i fix this problem?

  • Avatar of KayrokMagick KayrokMagick Jan 23, 2015 at 08:40 UTC - 0 likes

    I know is too much ask but you think you can support cauldron servers? In my 1.7.10 server when the sentry dies, this keep attacking his fow, I mean; him respawn inmediatly after death, but "something" invisible keep attacking the enemy who kill him and then my server crash X_X. Thanks a lot I hoe you can make this, your plugin is awesome : 3

  • Avatar of Quaziz Quaziz Jan 13, 2015 at 13:35 UTC - 0 likes

    @mcmonkey4eva: Go

    I checked the next last version out and that seems to work better at first. Though as soon as i add waypoints to them the server crashes. Where do you want my error log?

    Last edited Jan 13, 2015 by Quaziz
  • Avatar of mcmonkey4eva mcmonkey4eva Jan 12, 2015 at 21:31 UTC - 0 likes

    @Quaziz: Go

    Try the various version available on in the "Updates" box, there should be multiple for 1.7.10 if I remember right... if none of them work, grab the most recent one and post a startup log from running it.

    Note that none of the recommend version are flipping 1.7.9, which is, if you can't tell, the /wrong/ version.

    Last edited Jan 12, 2015 by mcmonkey4eva
  • Avatar of Quaziz Quaziz Jan 12, 2015 at 18:28 UTC - 0 likes

    Hi! I use citizens-2.0.13-1.7.10-Cauldron-B2.jar for Cauldron 1.7.10 and have got that and denizen working on the server. Those are my favorite plugins togather with Sentry. I was converting everything on my bukkit server to the latest cauldron (spigotMC) server. The only plugin i have'nt got to work is Sentry (R: Sentry 1.8.2 for CB 1.7.9-R0.1 Jun 03, 2014). Citizens 2.0 did'nt work at first, than i downloaded the Cauldron version that works fine. So i was wondering if its possible for you to make a modification for us hwo uses spigot|Cauldron, or whatever fix there needs to be? Thank you for your time and a great plugin!


    Last edited Jan 12, 2015 by Quaziz
  • Avatar of mcmonkey4eva mcmonkey4eva Jan 10, 2015 at 21:44 UTC - 0 likes

    @InTheSavaGe: Go

    Your Vault and Permissions versions are mismatched and incompat with each other, update them both to latest for best chance at functionality. Nothing to do with Sentry.

  • Avatar of mcmonkey4eva mcmonkey4eva Jan 07, 2015 at 00:37 UTC - 0 likes

    @jammylow29: Go

    Look at literally the post directly below yours @.@

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