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 Akemei Akemei Feb 12, 2016 at 19:42 UTC - 0 likes

    @Berkolino: Go

    I keep getting the same error

  • Avatar of Blamo27 Blamo27 Feb 05, 2016 at 19:17 UTC - 0 likes

    jrbudda's last connection: "Aug 21, 2014"

  • Avatar of cp123907444 cp123907444 Feb 04, 2016 at 19:35 UTC - 0 likes

    @Berkolino: Go yes,My server1.8.4Also have this problem

  • Avatar of Berkolino Berkolino Feb 01, 2016 at 11:43 UTC - 1 like

    Hey, I have a problem, the sentry plugin does not work. I can't do the Command ''/trait sentry''. Here is the Log, please can someone help me, thanks!

    [12:35:16 INFO]: PikaLino issued server command: /trait sentry [12:35:16 WARN]: java.lang.NoClassDefFoundError: net/minecraft/server/v1_7_R3/Packet [12:35:16 WARN]: at net.aufdemrand.sentry.SentryTrait.ensureInst( [12:35:16 WARN]: at net.aufdemrand.sentry.SentryTrait.onSpawn( [12:35:16 WARN]: at net.citizensnpcs.api.npc.AbstractNPC.addTrait( [12:35:16 WARN]: at net.citizensnpcs.api.npc.AbstractNPC.addTrait( [12:35:16 WARN]: at net.citizensnpcs.commands.TraitCommands.addTrait( [12:35:16 WARN]: at net.citizensnpcs.commands.TraitCommands.toggle( [12:35:16 WARN]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [12:35:16 WARN]: at sun.reflect.NativeMethodAccessorImpl.invoke( [12:35:16 WARN]: at sun.reflect.DelegatingMethodAccessorImpl.invoke( [12:35:16 WARN]: at java.lang.reflect.Method.invoke( [12:35:16 WARN]: at net.citizensnpcs.api.command.CommandManager.executeMethod( [12:35:16 WARN]: at net.citizensnpcs.api.command.CommandManager.execute( [12:35:16 WARN]: at net.citizensnpcs.api.command.CommandManager.executeSafe( [12:35:16 WARN]: at net.citizensnpcs.Citizens.onCommand( [12:35:16 WARN]: at org.bukkit.command.PluginCommand.execute( [12:35:16 WARN]: at org.bukkit.command.SimpleCommandMap.dispatch( [12:35:16 WARN]: at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand( [12:35:16 WARN]: at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand( [12:35:16 WARN]: at net.minecraft.server.v1_8_R3.PlayerConnection.a( [12:35:16 WARN]: at net.minecraft.server.v1_8_R3.PacketPlayInChat.a( [12:35:16 WARN]: at net.minecraft.server.v1_8_R3.PacketPlayInChat.a( [12:35:16 WARN]: at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$ [12:35:16 WARN]: at java.util.concurrent.Executors$ [12:35:16 WARN]: at [12:35:16 WARN]: at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [12:35:16 WARN]: at net.minecraft.server.v1_8_R3.MinecraftServer.B( [12:35:16 WARN]: at net.minecraft.server.v1_8_R3.DedicatedServer.B( [12:35:16 WARN]: at net.minecraft.server.v1_8_R3.MinecraftServer.A( [12:35:16 WARN]: at [12:35:16 WARN]: at [12:35:16 WARN]: Caused by: java.lang.ClassNotFoundException: net.minecraft.server.v1_7_R3.Packet [12:35:16 WARN]: at [12:35:16 WARN]: at [12:35:16 WARN]: at java.lang.ClassLoader.loadClass( [12:35:16 WARN]: at java.lang.ClassLoader.loadClass( [12:35:16 WARN]: ... 30 more

  • Avatar of BredBear BredBear Jan 31, 2016 at 15:13 UTC - 0 likes

    Thank you for such a wonderful plugin! Dear developer, and please tell me you can recompile the plug-in for the new version of Minecraft ???

    Last edited Jan 31, 2016 by BredBear
  • Avatar of silentspectr silentspectr Jan 27, 2016 at 14:23 UTC - 0 likes


    My citizens with the sentry trait duplicate for no reason

    they also are very slow and retarded :p

    can you fix that? thanks

  • Avatar of Blamo27 Blamo27 Jan 23, 2016 at 15:24 UTC - 0 likes

    @jrbudda Can you fix this bug :

    When I come to an area with a lot of NPC with the sentry trait :

    Task: SentryInstance$SentryLogic(interval 10) => 89.30 % ?

  • Avatar of sami37 sami37 Jan 22, 2016 at 18:04 UTC - 0 likes

    @jrbudda Hello,

    is there any way to set guardTarget like "setGuardTarget(player.getName());" ?

    Actually i am able to create a npc, set skin, spawn/despawn, equip item but the npc just stay there and don't follow the creator. How i can do that ?

    Last edited Jan 22, 2016 by sami37
  • Avatar of Blamo27 Blamo27 Jan 14, 2016 at 13:16 UTC - 0 likes

    /!\ TPS => 5 /!\

    When I'm going to an area with some NPC's While they are targeting me, the server is very slow

    Timings paste :

    Last edited Jan 14, 2016 by Blamo27
  • Avatar of Pr0totype2 Pr0totype2 Dec 24, 2015 at 18:49 UTC - 0 likes

    @FearlessOne37: Go

    There was a command which sets the NPC's movement-speed. Try to play around with that a bit?

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