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 Jun 8, 2013Love this plugin, however, after updating to 1.5.2, the sentries no longer seem to target anything, the properties can be set, but they just don't attack.
Also when they are set as bodygaurds, they do not follow a smooth path, they jump in 5-20 block intervals.
-
View User Profile
-
Send Message
Posted Jun 8, 2013Yes they do!
-
View User Profile
-
Send Message
Posted Jun 8, 2013Those of you with ghost drops... if you log out and back in... do they disappear?
-
View User Profile
-
Send Message
Posted Jun 8, 2013my sentry Dubble Drops: i dont want that ghost drops, i want the real drop, how can i fix this
-
View User Profile
-
Send Message
Posted Jun 8, 2013i got a problem, my sentry dubble drops his gear but i only can take 1 armour set, that other one is ghost item, how can i fix this?
-
View User Profile
-
Send Message
Posted Jun 7, 2013Jrbudda, would you be able to add 2 range options, so one for agressive range, meaning any targets added to the sentry would be auto targeted at the "aggressive range". And also a "retaliation range" where the sentry will auto target anyone who attacks the sentry within this range. Would be awesome if you could add this!
-
View User Profile
-
Send Message
Posted Jun 7, 2013@Shreaders
do /npc path then left click the block underneath him twice, then type /npc path again, and any time he it moved about 2 blocks away from that block, he will run back :] As for the drop problem, select the npc and type /sentry drops
-
View User Profile
-
Send Message
Posted Jun 7, 2013/sentry spawn does nothing!
-
View User Profile
-
Send Message
Posted Jun 7, 2013Hello,
So far I am able to get this plugin to work! When I changed my NPC to a sentry, I was able to move him. I don't want my members to be able to push guards away from their post. Is there a way I can make a guard walk back to where he was originally standing if he is pushed, or make it so he can't be pushed in the first place?
Also have another problem where when my NPC dies it drops items that cannot be picked up. I don't want him to drop the items at all. How can I change that?
-
View User Profile
-
Send Message
Posted Jun 6, 2013Hey Death here and I would love to thank you for making an awesome mod. With this said, the problem that I am is having is after being killed, the sentry's drop items that are unable to be picked up or even interacted with. Also, the files says that they don't things on death and act "true" for player deaths, yet they still drop stuff.
-
View User Profile
-
Send Message
Posted Jun 6, 2013I put Drops off but when my NPC dead, he lost is armor. it can be pick up by anothers players but it stays on the ground ..
Can someone help me?
I use /sentry equip 358 (example)
-
View User Profile
-
Send Message
Posted Jun 4, 2013@Zeroi9
Health bar works, but it shows the incorrect amount of health unless the sentry has 20 hp or below.
-
View User Profile
-
Send Message
Posted Jun 4, 2013Having issues with 1.3.6. Sentries recieve damage but even at default strength players are not getting hurt from them :( anyone know a solution or where am i going wrong?
-
View User Profile
-
Send Message
Posted Jun 4, 2013I use a sentry as a bodyguard. I give him the option "/follow 32" so he does not constantly stepping on the feet me. But: If the sentry is out of range, he tp to me in closest distance - and not at the distance 32. The problem is - when I'm driving in a train, he stops the train, because he teleports all the time on the railroad tracks. I think - wouldnt it be better if he just teleports to the specified distance?
Or alternatively a command like "/sentry wait" and "/sentry cometome"?
-
View User Profile
-
Send Message
Posted Jun 2, 2013@filoghost
Healthbars works for me with Sentry
-
View User Profile
-
Send Message
Posted May 30, 2013Still incompatible with HealthBar, latest dev build of Citizens and Sentry v1.3.6, are you using setHealth() ?
-
View User Profile
-
Send Message
Posted May 28, 2013@funfair91
Bodyguards obey any damage protection plugins you have running, this is to prevent griefing. Modifyworld (comes with PEX), I'm told, causes a lot of these issues.
-
View User Profile
-
Send Message
Posted May 28, 2013DefaultTargets:
- entity:monsters
-
View User Profile
-
Send Message
Posted May 27, 2013Default target and Default ignores as defined in config.yml does not seem to work
I've tried
/npc create npcname --trait sentry
and
/npc create npcname
/trait sentry
When I do a :
/sentry target list
or
/sentry ignore list
it returns
[]
This is the setting in my config.yml
-----------------------------------------------------
#Default target list for new Sentries.
DefaultTargets:
entity:monsters
#Default ignore list for new Sentries
DefaultIgnores:
entity:owner
-
View User Profile
-
Send Message
Posted May 26, 2013Is there any way to set a sentry so that it is immune to damage from specific groups?
I have a sentry (king) in a castle. The group that owns the castle is called Vistan.. now the sentry is set to attack the rival castle group called Portars... however
The vistan players can kill their own king and I would rather they did not.. the king will not hit them back and I dont want him too but I would like to make him immune to damage form his own group (people) is this possible?
Thanks