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 Joshii2201 Joshii2201 Jun 25, 2016 at 16:49 UTC - 0 likes

    Don't work correctly

    I ues /trait sentry

    25.06 18:47:46 [Server] WARN java.lang.NoClassDefFoundError: net/minecraft/server/v1_9_R2/Packet
    25.06 18:47:46 [Server] WARN at net.aufdemrand.sentry.SentryTrait.ensureInst(
    25.06 18:47:46 [Server] WARN at net.aufdemrand.sentry.SentryTrait.onSpawn(
    25.06 18:47:46 [Server] WARN at net.citizensnpcs.api.npc.AbstractNPC.addTrait(
    25.06 18:47:46 [Server] WARN at net.citizensnpcs.api.npc.AbstractNPC.addTrait(
    25.06 18:47:46 [Server] WARN at net.citizensnpcs.commands.TraitCommands.addTrait(
    25.06 18:47:46 [Server] WARN at net.citizensnpcs.commands.TraitCommands.toggle(
    25.06 18:47:46 [Server] WARN at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    25.06 18:47:46 [Server] WARN at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    25.06 18:47:46 [Server] WARN at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    25.06 18:47:46 [Server] WARN at java.lang.reflect.Method.invoke(Unknown Source)
    25.06 18:47:46 [Server] WARN at net.citizensnpcs.api.command.CommandManager.executeMethod(
    25.06 18:47:46 [Server] WARN at net.citizensnpcs.api.command.CommandManager.execute(
    25.06 18:47:46 [Server] WARN at net.citizensnpcs.api.command.CommandManager.executeSafe(
    25.06 18:47:46 [Server] WARN at net.citizensnpcs.Citizens.onCommand(
    25.06 18:47:46 [Server] WARN at org.bukkit.command.PluginCommand.execute(
    25.06 18:47:46 [Server] WARN at org.bukkit.command.SimpleCommandMap.dispatch(
    25.06 18:47:46 [Server] WARN at org.bukkit.craftbukkit.v1_10_R1.CraftServer.dispatchCommand(
    25.06 18:47:46 [Server] WARN at net.minecraft.server.v1_10_R1.PlayerConnection.handleCommand(
    25.06 18:47:46 [Server] WARN at net.minecraft.server.v1_10_R1.PlayerConnection.a(
    25.06 18:47:46 [Server] WARN at net.minecraft.server.v1_10_R1.PacketPlayInChat.a(
    25.06 18:47:46 [Server] WARN at net.minecraft.server.v1_10_R1.PacketPlayInChat.a(
    25.06 18:47:46 [Server] WARN at net.minecraft.server.v1_10_R1.PlayerConnectionUtils$
    25.06 18:47:46 [Server] WARN at java.util.concurrent.Executors$ Source)
    25.06 18:47:46 [Server] WARN at Source)
    25.06 18:47:46 [Server] WARN at net.minecraft.server.v1_10_R1.SystemUtils.a(SourceFile:45)
    25.06 18:47:46 [Server] WARN at net.minecraft.server.v1_10_R1.MinecraftServer.D(
    25.06 18:47:46 [Server] WARN at net.minecraft.server.v1_10_R1.DedicatedServer.D(
    25.06 18:47:46 [Server] WARN at net.minecraft.server.v1_10_R1.MinecraftServer.C(
    25.06 18:47:46 [Multicraft] Skipped 13 lines due to rate limit (30/s)
  • Avatar of christiank2012 christiank2012 Jun 25, 2016 at 07:12 UTC - 0 likes

    If i do /npc create Town Guard --trait sentry does it set a npc named town guard but it comes with an error and it ses:

    [07:57:19 WARN]: java.lang.NoClassDefFoundError: net/minecraft/server/v1_7_R1/World
    [07:57:19 WARN]: at net.aufdemrand.sentry.SentryTrait.ensureInst(
    [07:57:19 WARN]: at net.aufdemrand.sentry.SentryTrait.onSpawn(
    [07:57:19 WARN]: at net.citizensnpcs.api.npc.AbstractNPC.addTrait(
    [07:57:19 WARN]: at net.citizensnpcs.commands.NPCCommands.create(
    [07:57:19 WARN]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [07:57:19 WARN]: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    [07:57:19 WARN]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [07:57:19 WARN]: at java.lang.reflect.Method.invoke(Unknown Source)
    [07:57:19 WARN]: at net.citizensnpcs.api.command.CommandManager.executeMethod(
    [07:57:19 WARN]: at net.citizensnpcs.api.command.CommandManager.execute(
    [07:57:19 WARN]: at net.citizensnpcs.api.command.CommandManager.executeSafe(
    [07:57:19 WARN]: at net.citizensnpcs.Citizens.onCommand(
    [07:57:19 WARN]: at org.bukkit.command.PluginCommand.execute(
    [07:57:19 WARN]: at org.bukkit.command.SimpleCommandMap.dispatch(
    [07:57:19 WARN]: at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(
    [07:57:19 WARN]: at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(
    [07:57:19 WARN]: at net.minecraft.server.v1_8_R3.PlayerConnection.a(
    [07:57:19 WARN]: at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(
    [07:57:19 WARN]: at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(
    [07:57:19 WARN]: at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$
    [07:57:19 WARN]: at java.util.concurrent.Executors$ Source)
    [07:57:19 WARN]: at Source)
    [07:57:19 WARN]: at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44)
    [07:57:19 WARN]: at net.minecraft.server.v1_8_R3.MinecraftServer.B(
    [07:57:19 WARN]: at net.minecraft.server.v1_8_R3.DedicatedServer.B(
    [07:57:19 WARN]: at net.minecraft.server.v1_8_R3.MinecraftServer.A(
    [07:57:19 WARN]: at
    [07:57:19 WARN]: at Source)
    [07:57:19 WARN]: Caused by: java.lang.ClassNotFoundException: net.minecraft.server.v1_7_R1.World
    [07:57:19 WARN]: at
    [07:57:19 WARN]: at
    [07:57:19 WARN]: at java.lang.ClassLoader.loadClass(Unknown Source)
    [07:57:19 WARN]: at java.lang.ClassLoader.loadClass(Unknown Source)
    [07:57:19 WARN]: ... 28 more

    PS my server is on 1.8.8 and citizens 2.0.16-SNAPSHOT (build 1267) 1.8.1 and sentry 1.8.0 1.7.2
    Please help

  • Avatar of d0do63 d0do63 Jun 21, 2016 at 20:44 UTC - 0 likes

    i have an error with /trait sentry my version of citizens is 2.0.16 and i have sentry 1.8.8 jenkins please help

  • Avatar of Sitieno14 Sitieno14 Jun 10, 2016 at 09:12 UTC - 0 likes

    Update to 1.8 please

  • Avatar of SwahgnerDK SwahgnerDK May 27, 2016 at 23:02 UTC - 0 likes

    @UltiMCDK: Go I had this as well, but in jenkins I surfed the site for the update closest to my game version and it fixed it.

    MineCityRP Join the roleplay experience!

    MineCityRP Home Page


  • Avatar of SwahgnerDK SwahgnerDK May 27, 2016 at 23:00 UTC - 0 likes

    Please Help


    Whenever the npc tries to attack someone it seems like the npc's pathfinding only updates every 4th or 5th second. Which makes it very easy to escape from.

    Npc creation

    /npc create KillBot_ /trait sentry /sentry target add event:pvp + some extra stuff added such as health, strength etc.


    Spigot 1-8-8 Sentry (for MC 1.8) Citizens 2 (for MC 1.8)

    ==== I hope that someone can help ====

  • Avatar of UltiMCDK UltiMCDK May 15, 2016 at 18:05 UTC - 0 likes

    When i type /trait sentry, and i have and NPC selected, i got this message: "Please report this error: [See console] java.lang.NoClassDefFoundError: net/minecraft/server/v1_7_R3/World" Plz help me.

  • Avatar of TeamL TeamL May 03, 2016 at 19:31 UTC - 0 likes

    Can you pleeeeaaase update this to 1.8.8? :):):):):)

  • Avatar of mcmonkey4eva mcmonkey4eva Apr 26, 2016 at 02:30 UTC - 0 likes

    @ProtoTypeEU: Go

    Update to more modern versions, that was a bug in older ones.

    Also, if you use 1.9.2, consider replacing Sentry with Sentinel: (Note: Not advertising... I'm the present maintainer of Sentry as appointed by the Citizens team, and I chose to drop the project in favor of the replacement, Sentinel)

  • Avatar of ProtoTypeEU ProtoTypeEU Apr 25, 2016 at 23:38 UTC - 0 likes

    Hi, nice job, this plugin is just awesome, but i have one problem with it.

    When i kill some sentry even if i write /sentry drops or /sentry killdrops and in each one says "Sentry will not drop items or exp", it does, any fix for it? Thank you very much

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