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 Sep 25, 2013Pathfinding and movement is handled in Citizens, I will talk to the dev of that about the issues.
-
View User Profile
-
Send Message
Posted Sep 25, 2013My sentrys are running away when attacked.
-
View User Profile
-
Send Message
Posted Sep 25, 2013dev build has a problem with the targets. when I set a certain group to be attacked, it attacks all groups.
-
View User Profile
-
Send Message
Posted Sep 24, 2013How do I use color codes with /sentry equip to equip colored leather armor? I can't use /npc equip (which works fine) because I use a script to spawn the NPC's
Buyable NPC based guards, spawned with a CraftBook commanditem that will defend your faction to the last. It's an excellent addition for my players and a even better gold sink for my server.
@xenomorph6
I had something like that with 1.6.2, but it's fixed in the latest release.
-
View User Profile
-
Send Message
Posted Sep 24, 2013@fungreenfox
LOL'ed out loud hahaha
-
View User Profile
-
Send Message
Posted Sep 24, 2013Come on man. Our sentry's are turning 17 times around themselves before taking next waypoint. This could have been tested better.
-
View User Profile
-
Send Message
Posted Sep 23, 2013Please update to 1.6.4.
EDIT: There is an Citizens 1.6.4 Alpha Build out.
-
View User Profile
-
Send Message
Posted Sep 23, 2013I have 1.6.4 and sentry's. The sentry is just running away from anything on target list, even used retaliate on him, only hitting zombies if they are running to him, and when he can't run away.
If hit and target gone, he starts spinning around like crazy. If a guard is walking a pathway, it is spinning around himself 8 times before taking next path point. It looks like the usual "jump" he use to make, is rotated for a spin...
-
View User Profile
-
Send Message
Posted Sep 22, 2013it is updated ^ ^ look here: Sentry
-
View User Profile
-
Send Message
Posted Sep 22, 2013oops! I updated my server and citizens 2 for 1.6.4 but I see no dev build for Sentry. And now it doesn't work...Hopefully the update'll be available soon.
-
View User Profile
-
Send Message
Posted Sep 22, 2013How can I equip a mount??
-
View User Profile
-
Send Message
Posted Sep 21, 2013@jrbudda
I can't use "sendspace" to download the update, please consider more file mirrors.
-
View User Profile
-
Send Message
Posted Sep 20, 2013@red0fireus
On the wiki
-
View User Profile
-
Send Message
Posted Sep 20, 2013update 1.6.4??
-
View User Profile
-
Send Message
Posted Sep 17, 2013sentry's guard [ /sentry guard *player* ] won't damage mobs, I did /sentry target add entity:all and that makes them attack other npc's but they still won't damage mobs, they get aggro at the mobs and I see them trying to hurt them with the sword, but the mobs don't take damage, please tell me the fix, or let me know if its a craftbukkit problem, also when I tried this I was owner rank and I had op.
-
View User Profile
-
Send Message
Posted Sep 16, 2013@blackcat124gt
Use this to add a specific nation /sentry target add nation:name
or all your nations enemies /sentry target add nationenemies:yournation
-
View User Profile
-
Send Message
Posted Sep 14, 2013Is there a way to make the Sentries attack someone from a different Nation with towny?
-
View User Profile
-
Send Message
Posted Sep 13, 2013@jrbudda
ah... I prefer this version vs new factions. I feel they downgraded. I thought that might be the problem. Oh well. I'll upgrade. Thanks.
-
View User Profile
-
Send Message
Posted Sep 13, 2013@lvlercenary
This can be caused by a conflict with Modifyworld that comes with PEX or other plugins.
@IndigoParadox
Thats an error from an outdated version of Factions.
-
View User Profile
-
Send Message
Posted Sep 13, 2013/sentry mount does not work, it just creates a mount for the sentry, he doesnt actually get on it.....