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 Dec 6, 2012@connor4312
its on github and up to date, but feel free to donate anyway :)
-
View User Profile
-
Send Message
Posted Dec 4, 2012Any chance of releasing the source? I would love to use this, but I would need to modify it somewhat. If not, maybe let people donate to get the source?
-
View User Profile
-
Send Message
Posted Dec 3, 2012@KoBro12
Make sure PVP is enabled on the server/world
-
View User Profile
-
Send Message
Posted Dec 3, 2012For me it seems like I can't hit NPC Sentries... (Player) No error, just cant deal damage.
-
View User Profile
-
Send Message
Posted Dec 2, 2012@s32ialx
what?
-
View User Profile
-
Send Message
Posted Dec 1, 2012OK i don't know if I have the newest version but really when will they beable to go up single blocks like all other npc's and mobs????
@lewisviper
thanks I'll try that
-
View User Profile
-
Send Message
Posted Dec 1, 2012@artlune
Sentries can't 'strafe'. If you are moving and they acquire a target they will continue to move/look in your direction. They will still fire in the direction of the target, it just looks a little odd.
-
View User Profile
-
Send Message
Posted Nov 30, 2012I'm having an issue with the bodyguard. When I type /sentry equip BLAZE_ROD or any other ranged weapon, my sentry bodyguard seems to look at me and fires in my direction instead of at the enemy when one is nearby. Swords seem to work fine.
Is there a way around this? /npc lookclose is toggled off.
-
View User Profile
-
Send Message
Posted Nov 28, 2012Would just like to say you guys did an amazing job on the path finding of these sentries. They surprisingly followed a couple of my server players flawlessly. And they were putting them through quite a test. Running up spiral staircases and jumping out of windows trying to escape from their guards.
-
View User Profile
-
Send Message
Posted Nov 27, 2012@jrbudda
The only saves file im seeing is in Cititzens folder, and i dont see my NPC named "Sentry" anywhere on that file EDIT: For some reason it's no longer spamming my chat, donno what I did, but it seems fixed for now, will report back if theres any more issues! :D
-
View User Profile
-
Send Message
Posted Nov 27, 2012@CipherMagi
The config.yml is just the defaults for new sentries. You will have to change the options individually on any existing sentries. (or edit the citizens saves.yml)
-
View User Profile
-
Send Message
Posted Nov 25, 2012Hi, sorry if this has been brought up before, but my sentries keep greeting me, even though I have it commented out in the config, ive /reload and restarted server a couple times, no luck .
-
View User Profile
-
Send Message
Posted Nov 22, 2012@s32ialx
with this i use the /NPC TEXT to add greetings ect and with sentry greeting i change it to '' to cancel it out completely, but I do know Sentry is broken for now, i await a new update.
-
View User Profile
-
Send Message
Posted Nov 22, 2012Is an error I get on server startup... I believe its the same as @Necromedes. How do I fix this?
-
View User Profile
-
Send Message
Posted Nov 21, 2012Ok, I know that some of this plugin is still being worked on but I get the feeling that some people are able to use this function and I can't
Whenever I try to use pretty much any command for Sentry it gives me an internal error message. None of my other plugins are affecting it because it does it on a fresh server as well. Example commands are setting targets, stat lists and I also have to restart my connection to the server to be able to see their equipment after I give it to them.
If someone could help me with this then I'd be grateful. Thanks.
-
View User Profile
-
Send Message
Posted Nov 20, 2012Hey! great plugins! I have an issue with when a player is near a sentry they constantly spam the Greeting to them "welcome <player>" over and over, I've tried to comment it out which the commenting out is successful but then it just displays the default greeting instead of my altered commented out greeting so I cannot disable it
Does not work to disable greeting just reverts it to default
Also does not disable just reverts to defualt
but when I do this it disables it but I would like to have the greeting but only just when the player first comes in to range with the sentry
# WarningRange: 5-
View User Profile
-
Send Message
Posted Nov 19, 2012@michaelbolland
I'm getting similar issues.
-
View User Profile
-
Send Message
Posted Nov 16, 2012Hey JR
My server is keeling over and i did some profiling and thread dumps to see what's happening and it looks like something weird is going on with spawn for me
Can you take a look?
Profile: https://dl.dropbox.com/u/25535993/qq.html
-
View User Profile
-
Send Message
Posted Nov 13, 2012@mimemei
If you cannot damage a sentry you might have a plugin conflict. Try removing other plugins to see if you can make it work.
-
View User Profile
-
Send Message
Posted Nov 13, 2012Hi and many thanks - its a realy nice plugin. But i have one small problem. Bukkit build is 1.4.2 -R0.2 Beta (2455) - Citizens is 2.04.(build 555) and sentry is 1.2.1 - I have many sentrys createt and equiped - thats works fine. Also bthe woypoints work perfect and all sentrys attak monsters. All have set events:PvP / PvSentry and PvNPC - but this work not !!! If i attack a sentry, i deal no damage ! And the sentrys ignore this!
PS : Server propertys allowed PVP
Thanks for any hints !
and sorry for my bad english - only lerning by doing :-)