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 Aug 1, 2013dwats, that was solved recently, download the latest build of the sentry plugin in the wiki of citizens
I want to know if there is a way to give permissions to players to select specific npcs..???
-
View User Profile
-
Send Message
Posted Jul 30, 2013I can also report that sentry NPCs are not dying. They don't seem to lose health properly.
-
View User Profile
-
Send Message
Posted Jul 30, 2013Sentry mounts don't work with the latest Bukkit build. The method it uses cannot be found.
EDIT: Updated Citizens2- works fine
-
View User Profile
-
Send Message
Posted Jul 30, 2013@skis
something along the lines of npc.traits.add(sentrytrait.class)
-
View User Profile
-
Send Message
Posted Jul 30, 2013How would I add/configure this trait through the Citizens API so I can spawn these through my plugin?
-
View User Profile
-
Send Message
Posted Jul 29, 2013Health not saving, the sentries not dieing (with Denizen installed), and the 'ghost' drops are both fixed in v1.5 which is currently available on the wiki page
-
View User Profile
-
Send Message
Posted Jul 29, 2013can you allow them to use guns?
-
View User Profile
-
Send Message
Posted Jul 28, 2013i have a big problem then i put the jar file in the plugin map it will not open like the other plugins i have why will i it not create a map in the plugin folder
-
View User Profile
-
Send Message
Posted Jul 27, 2013@TheD4n
Yeah, I got the same issue D:
-
View User Profile
-
Send Message
Posted Jul 26, 2013i have an issue whit this trait, when i give this trait to an npc that npc dont die when injured..
-
View User Profile
-
Send Message
Posted Jul 26, 2013./citizens save
-
View User Profile
-
Send Message
Posted Jul 25, 2013Any idea why the health is not saving. I set the health to something like 1000 and then after the server restarts its back to the default 20 or w/e it is
-
View User Profile
-
Send Message
Posted Jul 24, 2013Hello, I have found a bug, you have wrote on this page "Work with Denizen to become Bosses and Quest NPCs that run scripts upon death." But there are some issues. When you kill a sentry with assigned denizen script and your NPC is equiped, all the equip from the npc drops on the floor, you can not take it, when you rejoin the dropped items disappear. The problem is in "animated death" the same issue is in denizen with health trait, but in denizen config is option to disable animated death, can you add this config option for sentry too ? Because now are sentry not usable because this visual bug is annoing. Even for RPG server, you kill several npc and you get from 200 FPS to 20 FPS because on the floor there are over 9000 dropped items, and its quiet confusing, because players dont know which items are bugged and which are really droped items. Please fix it, its a great problem, thank you.
Welite.
-
View User Profile
-
Send Message
Posted Jul 19, 2013The Calvary is coming!
-
View User Profile
-
Send Message
Posted Jul 17, 2013How do I make it so he attacks anyone? No matter what.
Edit:
Never mind got it!
-
View User Profile
-
Send Message
Posted Jul 17, 2013Those of you with pathfinding problems, the citizens dev suggests editing the Citizens config.yml and settings pathfinding: use-new-finder: to false.
-
View User Profile
-
Send Message
Posted Jul 17, 2013@mrjunk
Sounds like a pathfinding issue, which is in Citizens, I'll check with them.
@CarlosFuentesss Same issue maybe, and yes, they go back to their waypoints after combat.
@Brky1 Interesting. I don't use Factions myself so I didn't test it after updating for Factions 2.0. I will look into it.
-
View User Profile
-
Send Message
Posted Jul 16, 2013Hi, I want only to say - Sentry don't support factions, factions were recoded and sentry no more supports them. Maybe they do, but i don't know how. I tried add target to sentry FACTION:<name of faction> and I joined faction, what i added to target. So if is there some solve, please answer me. Thank you.
-
View User Profile
-
Send Message
Posted Jul 16, 2013Two questions:
When I set a path for my sentry, he goes to one of the points in the path and just walks around that point in a circle, getting stuck. What gives?
And, the other: if my sentry attacks a mob, will it return to its path (once the path works)?
Thanks!
-
View User Profile
-
Send Message
Posted Jul 16, 2013Hmm. My sentry is just running around in circles when a monster is nearby. Am I missing some configuration, or is it a bug?