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 Honeydrowse Honeydrowse Jul 25, 2016 at 13:50 UTC - 0 likes

    Sentry works great, but the wiki is sooooooooooooooo slow/glitchy. Please put up a mirror site or something. Just a list of commands on this page would be a massive help.

  • Avatar of killerwars2000 killerwars2000 Jul 21, 2016 at 14:03 UTC - 0 likes

    Please update for 1.8.8, because Jekins version doesn't work + I think the author is afk for good, its not even necessary to keep posting comments here , he won't reply. This build my get deleted if the author keeps being inactive the whole time.

  • Avatar of ninjapigEPT ninjapigEPT Jul 17, 2016 at 09:11 UTC - 0 likes

    when i use sentry or builder on my server there is error

  • Avatar of robinpowder robinpowder Jul 05, 2016 at 15:55 UTC - 0 likes

    @mcmonkey4eva: Go

    O god yes! Thank you so much :) keep up the good work!! Gonne check it out right now!

  • Avatar of mcmonkey4eva mcmonkey4eva Jul 05, 2016 at 01:10 UTC - 1 like

    @robinpowder: Go

    Sentry has been replaced by Sentinel under the same author.

  • Avatar of robinpowder robinpowder Jul 04, 2016 at 15:11 UTC - 0 likes


    Please keep working on this :] !

    Are you planning on updating it in the future? I never donated before that's how much of a prick I am but if you keep this thing running I will.

    Kind regards. Robin.

    Last edited Jul 04, 2016 by robinpowder
  • Avatar of UltiMCDK UltiMCDK Jun 29, 2016 at 20:09 UTC - 0 likes

    @SwahgnerDK: Go

    Which version should i download?? My server runs 1.8.

  • 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

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