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 Lord_Lethris Lord_Lethris Mar 22, 2016 at 12:40 UTC - 0 likes

    I think this plugin is great :) The only Issue I have is when I re-start the server or re-start the plugins, My Sentry NPC's loose all their items, bar the weapon.

    For example: If I "/sentry equip DIAMOND_CHESTPLATE" he'll appear to wear (obviously) Diamond Chestplate armour. If then I have to "/reload" plugins or "stop/start" the server, the NPC sentry looses the armour.

    I could "NPC Skin <playerName>" him, but its just not the same as wearing actual armour.

    TBH, It's not that trivial, just cosmetic I guess. So I'm not that bothered. I just "/NPC select x; /sentry equip xxx" every time I restart.

    I'm just thinking of all the Admins who set-up armies of sentries ;)

    Last edited Mar 22, 2016 by Lord_Lethris


  • Avatar of semirotta semirotta Mar 09, 2016 at 21:44 UTC - 0 likes

    How to have shield and sword in hand for sentry? is this possible yet?
    Also can mobs like Ghast and Blaze be made so they fly behind the one they guard instead of going on the ground as they would not be able to float at all?

    Last edited Mar 16, 2016 by semirotta
  • Avatar of pandapipino pandapipino Mar 04, 2016 at 08:59 UTC - 0 likes

    @mcmonkey4eva: Go


  • Avatar of pandapipino pandapipino Mar 01, 2016 at 08:38 UTC - 0 likes

    any news on 1.9 update? Thanks

  • Avatar of mcmonkey4eva mcmonkey4eva Feb 28, 2016 at 01:01 UTC - 0 likes

    @Everyone who posted below, I'll say it again: 1.8.8 builds are at

  • Avatar of Kazathur92 Kazathur92 Feb 28, 2016 at 00:47 UTC - 0 likes

    Hello! im getting this: 27.02 18:02:54 [Server] WARN at 27.02 18:02:54 [Server] WARN at 27.02 18:02:54 [Server] WARN at net.minecraft.server.v1_8_R3.MinecraftServer.A( 27.02 18:02:54 [Server] WARN at net.minecraft.server.v1_8_R3.DedicatedServer.B( 27.02 18:02:54 [Server] WARN at net.minecraft.server.v1_8_R3.MinecraftServer.B( 27.02 18:02:54 [Server] WARN at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) 27.02 18:02:54 [Server] WARN at 27.02 18:02:54 [Server] WARN at java.util.concurrent.Executors$ 27.02 18:02:54 [Server] WARN at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$ 27.02 18:02:54 [Server] WARN at net.minecraft.server.v1_8_R3.PacketPlayInChat.a( 27.02 18:02:54 [Server] WARN at net.minecraft.server.v1_8_R3.PacketPlayInChat.a( 27.02 18:02:54 [Server] WARN at net.minecraft.server.v1_8_R3.PlayerConnection.a( 27.02 18:02:54 [Server] WARN at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand( 27.02 18:02:54 [Server] WARN at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand( 27.02 18:02:54 [Server] WARN at 27.02 18:02:54 [Server] WARN at org.bukkit.command.PluginCommand.execute( 27.02 18:02:54 [Server] WARN at net.citizensnpcs.Citizens.onCommand( 27.02 18:02:54 [Server] WARN at net.citizensnpcs.api.command.CommandManager.executeSafe( 27.02 18:02:54 [Server] WARN at net.citizensnpcs.api.command.CommandManager.execute( 27.02 18:02:54 [Server] WARN at net.citizensnpcs.api.command.CommandManager.executeMethod( 27.02 18:02:54 [Server] WARN at java.lang.reflect.Method.invoke( 27.02 18:02:54 [Server] WARN at sun.reflect.DelegatingMethodAccessorImpl.invoke( 27.02 18:02:54 [Server] WARN at sun.reflect.NativeMethodAccessorImpl.invoke( 27.02 18:02:54 [Server] WARN at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 27.02 18:02:54 [Server] WARN at net.citizensnpcs.commands.NPCCommands.create( 27.02 18:02:54 [Server] WARN at net.citizensnpcs.api.npc.AbstractNPC.addTrait( 27.02 18:02:54 [Server] WARN at net.aufdemrand.sentry.SentryTrait.onSpawn( 27.02 18:02:54 [Server] WARN at net.aufdemrand.sentry.SentryTrait.ensureInst( 27.02 18:02:54 [Server] WARN java.lang.NoClassDefFoundError: net/minecraft/server/v1_7_R1/World

    I dont know what it means.. can anyone help me out?.. it doesn't let me add the Sentry trait to my npc's but the /sentry help works and shows me all the help for sentry.. its odd.. thanks in advance! :D

    im using the latest build of spigot 1.8.8

    Last edited Feb 28, 2016 by Kazathur92
  • Avatar of ajisfree ajisfree Feb 23, 2016 at 08:14 UTC - 0 likes

    @Isto29: Go

    I am also wanting this plugin to get an update but I am sad to say that I dont think it will anytime soon. I was surprised to see that the Citizens plugin was updated to work with 1.8. So far none of the addons have been updated. Sentry, PostMan and Builder were my favorites but are no longer supported on 1.8 due to them being out of date.

    But I still hope for the day they will get updated

  • Avatar of Isto29 Isto29 Feb 21, 2016 at 09:08 UTC - 0 likes

    Everytime, im trying to give it the Trait: Sentry, im getting this f error: 21.02 09:28:52 [Server] WARN java.lang.NoClassDefFoundError: net/minecraft/server/v1_7_R3/World 21.02 09:28:52 [Server] WARN at net.aufdemrand.sentry.SentryTrait.ensureInst( 21.02 09:28:52 [Server] WARN at net.aufdemrand.sentry.SentryTrait.onSpawn( 21.02 09:28:52 [Server] WARN at net.citizensnpcs.api.npc.AbstractNPC.addTrait( 21.02 09:28:52 [Server] WARN at net.citizensnpcs.api.npc.AbstractNPC.addTrait( 21.02 09:28:52 [Server] WARN at net.citizensnpcs.commands.TraitCommands.addTrait( 21.02 09:28:52 [Server] WARN at net.citizensnpcs.commands.TraitCommands.toggle( 21.02 09:28:52 [Server] WARN at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 21.02 09:28:52 [Server] WARN at sun.reflect.NativeMethodAccessorImpl.invoke( 21.02 09:28:52 [Server] WARN at sun.reflect.DelegatingMethodAccessorImpl.invoke( 21.02 09:28:52 [Server] WARN at java.lang.reflect.Method.invoke( 21.02 09:28:52 [Server] WARN at net.citizensnpcs.api.command.CommandManager.executeMethod( 21.02 09:28:52 [Server] WARN at net.citizensnpcs.api.command.CommandManager.execute( 21.02 09:28:52 [Server] WARN at net.citizensnpcs.api.command.CommandManager.executeSafe( 21.02 09:28:52 [Server] WARN at net.citizensnpcs.Citizens.onCommand( 21.02 09:28:52 [Server] WARN at org.bukkit.command.PluginCommand.execute( 21.02 09:28:52 [Server] WARN at org.bukkit.command.SimpleCommandMap.dispatch( 21.02 09:28:52 [Server] WARN at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand( 21.02 09:28:52 [Server] WARN at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand( 21.02 09:28:52 [Server] WARN at net.minecraft.server.v1_8_R3.PlayerConnection.a( 21.02 09:28:52 [Server] WARN at net.minecraft.server.v1_8_R3.PacketPlayInChat.a( 21.02 09:28:52 [Server] WARN at net.minecraft.server.v1_8_R3.PacketPlayInChat.a( 21.02 09:28:52 [Server] WARN at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$ 21.02 09:28:52 [Server] WARN at java.util.concurrent.Executors$ 21.02 09:28:52 [Server] WARN at 21.02 09:28:52 [Server] WARN at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) 21.02 09:28:52 [Server] WARN at net.minecraft.server.v1_8_R3.MinecraftServer.B( 21.02 09:28:52 [Server] WARN at net.minecraft.server.v1_8_R3.DedicatedServer.B( 21.02 09:28:52 [Server] WARN at net.minecraft.server.v1_8_R3.MinecraftServer.A( 21.02 09:28:52 [Server] WARN at 21.02 09:28:52 [Server] WARN at 21.02 09:28:52 [Server] WARN Caused by: java.lang.ClassNotFoundException: net.minecraft.server.v1_7_R3.World 21.02 09:28:52 [Server] WARN at 21.02 09:28:52 [Server] WARN at 21.02 09:28:52 [Server] WARN at java.lang.ClassLoader.loadClass( 21.02 09:28:52 [Server] WARN at java.lang.ClassLoader.loadClass( 21.02 09:28:52 [Server] WARN ... 30 more

    Info About Me

    Hey, Im the leading developer on AAboutUs -

  • Avatar of OmgItzIsquidiX OmgItzIsquidiX Feb 16, 2016 at 12:18 UTC - 0 likes

    Update THIS TO Sentry for 1.8.x FAST!

Your favorite Brigade?

  1. Choice:

  1. Results
  2. 2 comments


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