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 Oct 14, 2012@Minerfinder
I can't do anything about Heros from my end, their code does what it does.
-
View User Profile
-
Send Message
Posted Oct 13, 2012@jrbudda
Have you looked in the issues with sentry and Heroes?
-
View User Profile
-
Send Message
Posted Oct 12, 2012@ricehat98k
Send that error to the mcmmo people. I cant fix errors in their code, and please use a site like pastebin next time.
-
View User Profile
-
Send Message
Posted Oct 12, 2012@Minerfinder
Got the same problem :/
-
View User Profile
-
Send Message
Posted Oct 11, 2012@Minerfinder
I have not used Citizens 2 as of yet. I assume when you create or move the npc, that is where they spawn.
What I'd like to do is have some custom NPC spawn randomly around players when they are adventuring out and about. Theifs, pirates, raiders, etc. with certain spawn rates and range around the player.
If possible in certain biomes, certain types of NPCs spawn.
Kinda like vanilla mobs.
-
View User Profile
-
Send Message
Posted Oct 10, 2012@Liger_XT5 How do you create spawn points?
-
View User Profile
-
Send Message
Posted Oct 9, 2012I've been looking for a feature I once saw in the first citizens a time ago.
Random citizen 'mobs' would spawn around players, some nice, some aggressive.
I've looked around here and on the wiki and I wasn't able to see anything similar. The best I've been able to see is set spawn points.
-
View User Profile
-
Send Message
Posted Oct 8, 2012@Raymanic
@jrbudda
Yes same here I am having that issue.... Its definently from heroes... And what I think that is causing it is when heroes thinks the npc is a player and it gives it the starting class which has only 20 health.. I dont know if that is it im just guessing I cant figure it out..
-
View User Profile
-
Send Message
Posted Oct 5, 2012@Raymanic
What do you want to fix? Heros changes all the damage in the game around.
-
View User Profile
-
Send Message
Posted Oct 5, 2012I have this issue where sentries take about, i dunno, 200 damage when hit. I got this when i got Heroes.
I dont have an error log as nothing is coming up on the console. Anyone know the fix for this?
-
View User Profile
-
Send Message
Posted Oct 5, 2012I cant kill my Sentry and when i use them in a kill player quest it also does not work
-
View User Profile
-
Send Message
Posted Oct 4, 2012I got a little problem :S When a sentry dies he is send to the world spawn instead to the place where he died.
Is there a way to fix this?
-
View User Profile
-
Send Message
Posted Oct 4, 2012@Arcthus
/reload is not recommend for most plugins. Citizens included.
-
View User Profile
-
Send Message
Posted Oct 4, 2012@DarkSinian
Make sure you are using the latest version of Sentry (1.0.3)
The waypoints thing is a problem in citizens2 core. Waiting on a fix.
-
View User Profile
-
Send Message
Posted Oct 4, 2012the /reload gets me NullPointerException errors sooner or later. newest builds are tested and no other plugins.
-
View User Profile
-
Send Message
Posted Oct 4, 2012I used /sentry equip gold_sword to give my Sentry a Gold Sword (duh) but whenever it attacks anything the sword vanishes and I have to re-equip it. His armour works fine, it's just the weapon. I've tried bows which work fine and other melee items which vanish just like the sword.
Also if they fight 1 target, they're fine, but if I spawn a group of mobs in they seem to forget their waypoint and just stay where ever they were when they finish killing.
Any help would be much appreciated.
-
View User Profile
-
Send Message
Posted Oct 3, 2012"so i placed 2 guards and after a few min there are 4!"
i've the same probleme :/
-
View User Profile
-
Send Message
Posted Oct 2, 2012http://pastebin.com/kWCQbT6L
-
View User Profile
-
Send Message
Posted Oct 1, 2012Could you check out my ticket please.
-
View User Profile
-
Send Message
Posted Oct 1, 2012@KoBro12
I need to see the errors to help you. use pastebin.com