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 4, 2014Hello there, citizens2 doesnt fulfill 100% my needs. I need some more features that they doesnt support. So i want to write down my suggestions. But the general citizens 2 plugin chat forum (where we post the comments) is disabled. where can i post my suggestion for a new feature? So the developers of citizens2 may include in the next update?
Suggestion: I need an option to make some waypoints where when a ncp is patrolling, it can stop and stand there for for an amount of time, and then continue patrolling normally. And an option to change its speed from a waypoint to another.
Example: Sentry starting patrolling from the A spot to B with a speed of 20. The spot B is a waypoint as well and it stands at B for 4seconds and stares (people nearby) After the 4 seconds cooldown, the bot continue patrolling from B to C with a speed of 20. The spot C is a waypoint and it stands there for 0 seconds and continues to D with a speed of 60 (suddenly it runs)
So an option to make the ncp stop at waypoints, and change speed
-
View User Profile
-
Send Message
Posted Mar 2, 2014@chsedv
@Blamo27
I have no idea what you're saying the issue is, other than something doesn't work, which is far too vague to fix.
-
View User Profile
-
Send Message
Posted Mar 2, 2014@chsedv
Same problem ... the plugins doesn't work correctly.
-
View User Profile
-
Send Message
Posted Feb 26, 2014@mcmonkey4eva
When i make any other comamnds on Server with NPCs the sentry works no more.................no NPC kills more other monsters. i restart server and then NPCs with sentry kills again ..............after any time its same probleme........pls help
i used Spigot 1.7.2R04 build 1324
Pls fix it or update to bukkit 1.7.2r04
-
View User Profile
-
Send Message
Posted Feb 23, 2014@chsedv
That's a current issue with Citizens, not Sentry. Equipment appears to be bugging regardless of how it's given.
-
View User Profile
-
Send Message
Posted Feb 23, 2014when i give the NPC an item with /sentry equip IRON_SWORD, i see it not in Hand by NPC but the NPC kill corectly with sword. Why not see the sword in hand by Sentry NPC ?
Only when i logg out and relogin then i see the items by sentry NPC.
-
View User Profile
-
Send Message
Posted Feb 20, 2014@CommodoreAlpha
I learned from my numerous attempts to maintain Sentry while jrbudda is away that he absolutely will not accept Pull Requests, even ones that are wholly beneficial.
-
View User Profile
-
Send Message
Posted Feb 14, 2014Is there a way to use the config file to make all Sentries spawn with certain items or targets?
-
View User Profile
-
Send Message
Posted Feb 14, 2014Hey jrbudda, I seem to be having a problem where sentries are not targeting or ignoring players in scoreboard teams as well as permission groups. No matter what I do they won't attack me even if I add the scoreboard team or permission group I am in to their target list. I'm not sure if I am doing something wrong or if it is bugged. Hope you can help. Thanks!
-
View User Profile
-
Send Message
Posted Feb 8, 2014Having an issue where Sentries don't detect pvp, even though the event is added, they just don't do anything. All the other evens work, they also are not in any pvp deny region so I don't really know what is happening.
-
View User Profile
-
Send Message
Posted Feb 7, 2014I'm having a problem when trying to get a sentry to use an iron sword, I expect that the problem is the sentry can't choose a hero class, so therefore he can't use iron swords, do you know any way around this? Or anyone for that matter.
-
View User Profile
-
Send Message
Posted Feb 2, 2014@jrbudda
Alright, so the solution would be for me to learn Java, and make a pull request to Sentry for the mods I want it to be "compatible" with. Guess I'll have to start learning Java, and fast. ;)
Thanks for trying, though, I really appreciate it.
-
View User Profile
-
Send Message
Posted Feb 1, 2014I am getting the error:
java.lang.ClassNotFoundException: net.minecraft.server.v1_6_R2.Packet
Can anyone help me? Please
-
View User Profile
-
Send Message
Posted Jan 30, 2014@Dardanos_Of_Fate
Your best bet is to go to the Citizens IRC channel and ask fullwall, the Citizens2 dev.
-
View User Profile
-
Send Message
Posted Jan 29, 2014@jrbudda
Hello, thanks for the suggestion, unfortunately it didn't work.. I discovered that the issue is that NPC Horses are non-tamed. Is there any way to create tamed ones? Thanks.
-
View User Profile
-
Send Message
Posted Jan 29, 2014@CommodoreAlpha
Just tried it with CrackShot by firing my own PlayerInteractEvent and that's not working. Not sure how you'd go about aiming either. Also receiving damage from plugins like those is tricky as well. Don't think it's going to be possible to make Gun Sentries. :(
-
View User Profile
-
Send Message
Posted Jan 29, 2014@CommodoreAlpha
Drawing/blocking is an animation thing, they're not 'using' the bows... it's worth a shot tho... I give it a try.
@Dardanos_Of_Fate
You might be able to do that with /npc horse -c and the mount selected.
@cckman117
I honestly forget what names I used for those skins... you might be able to find it on http://mcskinsearch.com/browse
@Exodus37
Yes you'd do this with the Denizen plugin for citizens and a simple script using either the NPCDeath trigger or On Death action. See http://wiki.citizensnpcs.co/Sentry/Sentry_and_Denizen
-
View User Profile
-
Send Message
Posted Jan 29, 2014Hello,
I was wondering if it was possible for the sentries to have custom loot drops? (other than the currently equipped ones... for example: gold ingots, diamonds and emeralds) It would be quite nice having a strong boss NPC dropping valuable loot upon death. Maybe there is a way to put items in NPCs inventory and drop them upon death?
Alternative option is simply putting a chest next to the boss NPC, but people can use invisibility potions to simply collect the reward :(
-
View User Profile
-
Send Message
Posted Jan 29, 2014just wondering what are the names for the stormcallers etc. ?
thanks
-
View User Profile
-
Send Message
Posted Jan 27, 2014I am sill looking for an answer regarding adding armor to the Sentry's mount. Every time I use /npc equip with the sentry's mount selected, it plays the hearts particles when I try to equip horse armor to it. Is there a way to equip horse armor to an npc mount via command?