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.
Features
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.
Installation
- Install Citizens2 You must use the correct version for your version of Bukkit
- Download the correct Sentry from the Citizens Wiki. You must use the correct version for your version of Bukkit
- Place Sentry.jar in your minecraft /plugins/ directory. Start your server.
- Create a NPC with Citizens and give it the 'sentry' trait.
/npc create Town Guard --trait sentry
- Customize your Sentry's stats and options and you're ready to go.
A full list of commands and options is available on the Citizens 2 Wiki
Configuration
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.
![]()


-
View User Profile
-
Send Message
Posted Mar 14, 2014@barsik008
We recommend you gain more experience in life and technology in general before attempting to run a Bukkit server.
We can't give any help from the extremely vague issue you wrote in poor English.
All I can say is make sure you've downloaded the latest version (1.8.0 here or 1.7.1 off the wiki/dev build page) and it's properly in your plugins folder.
-
View User Profile
-
Send Message
Posted Mar 14, 2014not working on my server i dowloaded the citizens and sentry on 1.7.2 and i types /pl it said i dont have the sentry
-
View User Profile
-
Send Message
Posted Mar 12, 2014So i think in some wild way the citizens gear loading issue is linked to a sentry health bug
When i do /sentry health 250 on a sentry he seems fine and all is well with the exception that his gear is not loading(atleast i can't see it)
After a /citizens reload and a relog onto my server his gear is finally loaded but when I hit him his health is only 60 which is what i've got in the default config. I can only get one OR the other. Gear and default health, or set health and no gear.
After a while doing citizens reloads, server reloads and relogs, in an attempt to get gear to load on the citizen and his health correct at once, it breaks and ghosts the strentry next to him self. If i hit one w/o gear he has 250 health, if i hit the one with gear he has 60health.
The ghost can be cleared by doing stop and hard booting the server. The same problem persists after hard boot and previously stated conditions are met. If he loads with gear his health is out the window.
*also if i get hit by the sentry it kicks me and all players from the game complaining of netty.handler:decoder string length too long(23>16) Character name length. But his name is 5 characters long
Then i get spammed with the same ole "No implimentation set" bug (as ticketed)
-
View User Profile
-
Send Message
Posted Mar 11, 2014@mcmonkey4eva
@Mcmonkey4eva Scoreboard you say? Sweet Ill investigate in that direction thanks! Almost certain its' MCMMO(most recent plugin addition) So ill see about a work around. Seems to only limit characters on sentry but is very hard core about it. Citizens NPCS could care less about their name length but they also do not attack.
Update:
MCMMO aparently does extensive scoreboard work and when an NPC is flagged with /trait sentry MCMMO "picks it up". If the sentry's name is longer than 16 characters it will break all clients on the server and return
-Internal Exception: io.netty.handler.codec.DecoderException java.ioIDException The
received string length is longer than maximum allowed (17 > 16)
I submitted a ticket to MCMMO and hopefully this will be fixed soon to any one out there who has the same issue.
-
View User Profile
-
Send Message
Posted Mar 11, 2014@chsedv
It's supposed to be, 1.8 is bug-ridden, 1.7 is a lot more stable.
@tronman2020
Awesome on that working!
The armor thing is a current issue with Citizens, you can report it at http://issues.citizensnpcs.co/ (though I'll be going about ensuring it gets fixed ASAP myself) - er, and it should show up fine for players, it's mostly just while equipping that it's invisible.
Also, I've not had any name length issues... that error looks like what would appear from the Sentry's name going on a scoreboard.
-
View User Profile
-
Send Message
Posted Mar 11, 2014@mcmonkey4eva
awesome thanks!! @mcmonkey4eva I just updated and it works! Not sure what ya did but you really made my day <3
No logic failures yet, all latest dev builds. No errors in console so far!
Is there a setting to force skin-updating after equipping? My sentrys seem to no longer load their armor unless I go out of my way (like tp far away and do /citizens reload). I am not sure they are displaying correctly to my players :/
Also, I did notice that sentry HATES names longer than 16 characters, do you know if thats normal? citizens now allows long names but if i do /trait sentry on a citizen with more then 16 characters my server kicks every one off saying Recieved string length longer than maximum allowed: (namelength)>16
where in the parenthesis would be a number. Took me a while to figure out it was the length of names haha.
name length is no big deal but longer names would be pretty sweet. NPC's seem to function perfectly fine with 20 character names and such
-
View User Profile
-
Send Message
Posted Mar 11, 2014@mcmonkey4eva
Hello, sorry but this version in Link is 1.7.1 and latest new is 1.8x.
-
View User Profile
-
Send Message
Posted Mar 10, 2014@tronman2020
I made a fresh build of Sentry on the Citizens dev repo at http://ci.citizensnpcs.co/job/Sentry/ - see if that works (be sure to run the latest dev build of Citizens off the same repo as well)
-
View User Profile
-
Send Message
Posted Mar 10, 2014@mcmonkey4eva
@mcmonkey4eva
Thank you for telling me its known, i'm glad i'm not the only one. My problem inlies that when i downgrade to 1.7.1 I get a whole slew of other errors including armors not showing on npcs and the eventual massive console spam of "no implementation set".
I will just hope that the next build of 1.8.0 is one less of known issues :/
It works flawlessly otherwise
-
View User Profile
-
Send Message
Posted Mar 9, 2014@tronman2020
Known issue with the questionable build "1.8.0" - to fix that, switch to build v1.7.1 from the "Updates" box on the wiki -> http://wiki.citizensnpcs.co/Sentry
-
View User Profile
-
Send Message
Posted Mar 9, 2014Hello
When I attack a sentry and he comes to retaliate on his first hit I return the following error. It is not repetative. I happens on the first attack of each time he retaliates.
Spigot build 1300 for MC1.7.2
Latest sentry/citizens builds
It seems to have something to do with post kill logic since the error will not show up untill the sentry decides the target is no longer killable(aka dead or in creative). I can't figure out how to fix it!
[22:02:34] [Server thread/WARN]: [Sentry] Task #95 for Sentry v1.8.0 generated an exception
java.lang.NoSuchMethodError net.citizensnpcs.util.NMS.sendPacketsNearby(Lorg/bukkit/Location;[Lnet/minecraft/server/v1_7_R1/Packet;)V
at net.aufdemrand.sentry.SentryInstance$SentryLogic.run(SentryInstance.java:1420) ~[?:?]
at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftTask.run(CraftTask.java:58) ~[spigot172.jar:git-Spigot-1300]
at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) [spigot172.jar:git-Spigot-1300]
at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:612) [spigot172.jar:git-Spigot-1300]
at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:273) [spigot172.jar:git-Spigot-1300]
at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:560) [spigot172.jar:git-Spigot-1300]
at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:467) [spigot172.jar:git-Spigot-1300]
at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [spigot172.jar:git-Spigot-1300]
-
View User Profile
-
Send Message
Posted Mar 9, 2014@davidp5118
You need Citizens2: http://dev.bukkit.org/bukkit-plugins/citizens/
and you need Sentry: (the plugin you're currently on the page of)
Everything else is optional.
-
View User Profile
-
Send Message
Posted Mar 9, 2014ok this is all very confusing to me, and i must be doing something wrong because it's not working, so hopefully the answer to my question here will help others as well.
I am currently running a 1.7.2 server.
What are the links to the two plugins I need to have this work properly?
-
View User Profile
-
Send Message
Posted Mar 6, 2014@armorking87
You need Sentry v1.5.4 off the Wiki: http://wiki.citizensnpcs.co/Sentry
@Blamo27
... OK... you're still using the wrong version of Sentry.
-
View User Profile
-
Send Message
Posted Mar 6, 2014I'm using the latest version of Citizens. And I use Spigot-1322 (Implementing API version 1.7.2-R0.4-SNAPSHOT) Citizens version 2.0.11-SNAPSHOT (build 1082)
-
View User Profile
-
Send Message
Posted Mar 5, 2014I have the same problem with Sentry 1.5.2 for 1.6.2 ( I'm running 1.6.4 server) or there is no sentry for 1.6.4?
-
View User Profile
-
Send Message
Posted Mar 5, 2014@armorking87
You're using the the Sentry build meant for CraftBukkit 1.7 on a server that is not running 1.7
Update the server or down-date Sentry.
@Blamo27
Grab v1.7.1 of Sentry off http://wiki.citizensnpcs.co/Sentry -> it's bug-free! Possibly also make sure you're running the most up-to-date version of Citizens.
-
View User Profile
-
Send Message
Posted Mar 5, 2014[15:41:23] [Server thread/WARN]: [Sentry] Task #345269 for Sentry v1.8.0 generated an exception java.lang.NoSuchMethodError: net.citizensnpcs.util.NMS.sendPacketsNearby(Lorg/bukkit/Location;[Lnet/minecraft/server/v1_7_R1/Packet;)V at net.aufdemrand.sentry.SentryInstance$SentryLogic.run(SentryInstance.java:1420) [?:?] at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftTask.run(CraftTask.java:58) [spigot.jar:git-Spigot-1322] at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) [spigot.jar:git-Spigot-1322] at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:614) [spigot.jar:git-Spigot-1322] at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:273) [spigot.jar:git-Spigot-1322] at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:562) [spigot.jar:git-Spigot-1322] at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:469) [spigot.jar:git-Spigot-1322] at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [spigot.jar:git-Spigot-1322] [15:41:24] [Server thread/WARN]: [Sentry] Task #345269 for Sentry v1.8.0 generated an exception java.lang.NoSuchMethodError: net.citizensnpcs.util.NMS.sendPacketsNearby(Lorg/bukkit/Location;[Lnet/minecraft/server/v1_7_R1/Packet;)V at net.aufdemrand.sentry.SentryInstance$SentryLogic.run(SentryInstance.java:1420) [?:?] at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftTask.run(CraftTask.java:58) [spigot.jar:git-Spigot-1322] at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) [spigot.jar:git-Spigot-1322] at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:614) [spigot.jar:git-Spigot-1322] at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:273) [spigot.jar:git-Spigot-1322] at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:562) [spigot.jar:git-Spigot-1322] at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:469) [spigot.jar:git-Spigot-1322] at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [spigot.jar:git-Spigot-1322]
-
View User Profile
-
Send Message
Posted Mar 5, 2014Hi, I have a problem with Sentry for Citizens, when I tried to give trait to npc, I got an error: java.lang.NoclassDefFoundError: net/minecraft/server/v1_7_R1/World Can someone help me?
-
View User Profile
-
Send Message
Posted Mar 4, 2014@Noumpas13
I'm fairly sure there's a feature for that somewhere in '/npc path's more complex options.
Also it's not the best website setup for... anything, but you can post Citizens questions online at http://issues.citizensnpcs.co/secure/Dashboard.jspa OR you can visit the IRC channel and ask there - at http://webchat.esper.net/?channels=citizens
And if Citizens can't do what you need in itself, Denizen (NPC scripting plugin for Citizens) can most certainly accomplish it! http://wiki.citizensnpcs.co/Denizen