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 Jan 20, 2013I have a question how can i make it that the sentry instantly attack the player ?
-
View User Profile
-
Send Message
Posted Jan 20, 2013When ever i create a bodyguard the sentry hits the enemys but doesnt do any damage. He is swinging but nothing is happening. Cool Plugin thou
-
View User Profile
-
Send Message
Posted Jan 20, 2013I'm getting this error that won't load any of my npcs, and I'm not sure if it's Citizens2's problem or Sentry's problem. Is there a way to fix this?Everything works when I disable Sentry
-
View User Profile
-
Send Message
Posted Jan 19, 2013When I do /sentry spawn it respawns once where i set the respawn but then he respawns where he dies any tips how to make him spawn on the place I want him to?
-
View User Profile
-
Send Message
Posted Jan 19, 2013Any way to make them stand stil and not being able to get pushed? and if they follow someone and loose him return to their location?
-
View User Profile
-
Send Message
Posted Jan 18, 2013well, but this link allready works: http://dev.bukkit.org/server-mods/sentry-citizens2/files/16-sentry-1-3/ tested with CB #2602 (1.4.7R0.1-beta), citizens #668 and denizen 0.8pre #689. no errors so far.
-
View User Profile
-
Send Message
Posted Jan 18, 2013@Zarkiel7
There are no dev builds. New releases will show up on the wiki sooner than here due to the bukkit approval process.
-
View User Profile
-
Send Message
Posted Jan 17, 2013@jrbudda
where can i find the dev builds.
-
View User Profile
-
Send Message
Posted Jan 17, 2013@Andreius09
I think thats fixed in 1.3
-
View User Profile
-
Send Message
Posted Jan 17, 2013A quick question:
Will you fix the problem that Sentrys don't work with ragan262's Quester Plugin soon?
That would be awesome because i need this for my RPG server :D
-
View User Profile
-
Send Message
Posted Jan 17, 2013If I use /sentry guard <player> the resulting guard can't take or deal damage.
Also guards are going into an "isDying" status that makes them disappear. It's a massive pain.
-
View User Profile
-
Send Message
Posted Jan 12, 2013@jrbudda
Thanks jrbudda, idk why i didnt turn that to true b4, Seems to be working amazingly altho i have only tested it out for about 5 min but it worked right away, so idk why it would stop working. Thanks again!
Love the plugin!
-
View User Profile
-
Send Message
Posted Jan 11, 2013@zarakh01
Turn off retaliation, I mean. Archers shouldn't target anything that is out of line-of-sight. That's bukkit's calculation, not mine, maybe its broken.
-
View User Profile
-
Send Message
Posted Jan 11, 2013@jrbudda
First of all, turn what off, and second. I set up some archers at spawn, on some towers, with 100 range to they shoot monsters around spawn, and they seem to like trying to shoot monsters that are... under ground... i also tried with with a redstone torch.
-
View User Profile
-
Send Message
Posted Jan 9, 2013@Zarkiel7
The ignore list doesn't apply to retaliation, you'll have to turn it off to avoid this behavior.
@Madmike59
I can confirm this problem when warping away and the chunk unloads. It didn't used to do that, must be a change in minecraft/bukkit/citizens somewhere. I need to discuss it with the citizens dev. Edit: changing the chunks.always-keep-loaded setting in the Citizens config.yml to true might workaround this problem.
-
View User Profile
-
Send Message
Posted Jan 8, 2013Yea im having a problem where when i tp home or to spawn they dont come with me. He stays behind. It seemed like it was just a distance thing tho because if i moved him with commands and then reloaded citizens about 3 times i can get him to show up by me again, and if i tp about 100 blocks he would follow but if it was like from town to town he would just stay where i last was in the other town untill i walked back up to him, then he would start following again.
Also some of my regular guards that i have standing around the bank and whatnot dont seem to like their armor on days. Kinda a hit and miss weather they spawn with it or not.
-
View User Profile
-
Send Message
Posted Jan 8, 2013@jrbudda
Also another issue i have been tyring to overcome is, when a projectile from one npc hits another npc, they start attacking eachother, i have tried using /sentry ignore add entity:NPC but it doesnt work, they still kill eachother. Is there any way to stop them doing this?
-
View User Profile
-
Send Message
Posted Jan 7, 2013@jrbudda
Damn, thats exactly what i didnt want to do -.- Because now i have to make my entire place i made in rooms...
-
View User Profile
-
Send Message
Posted Jan 7, 2013@Zarkiel7
Ya know what you're right, sorry. What happens is it retaliates and immediately gives up cause the player is too far, you'll have to increase the range or build the area to prevent sniping. You could also hook into Denizen and use a proximity trigger to 'activate' the boss fight.
@Madmike59
Guards should remain where they are when a player logs out, and are supposed to follow a player when they teleport somewhere, are they not?
@TuplaVR
That could be easily accomplished with Denizen
-
View User Profile
-
Send Message
Posted Jan 7, 2013Hey! If you have time I have new npc request. New npc would be Buffpanger which could simply buff players (give potion effects for chosen time" So if you are interested please check this plugin request thread I made. :) http://forums.bukkit.org/threads/buffbang-npc.121143/