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 Feb 13, 2013could there be a new version soon ?
-
View User Profile
-
Send Message
Posted Feb 13, 2013Never mind, it's not the PvP protection that's causing them to do no damage - it's NoCheatPlus. Uninstalled that and used a different anti hacking plugin and it works fine now.
-
View User Profile
-
Send Message
Posted Feb 11, 2013@jrbudda
Is there any way to stop them from honouring pvp protection? The only plugin I have that could be causing that is WorldGuard, and I'm not removing that from my server.
-
View User Profile
-
Send Message
Posted Feb 10, 2013@jerethcool
Can't do anything about that from this end, that's a Factions problem. Maybe if you set Die-Like-Players to false, it wouldn't do it?
-
View User Profile
-
Send Message
Posted Feb 10, 2013Bodyguards work fine for me. Sounds like a plugin conflict, Bodyguards are programmed to honor any damage/attack protection, so try removing other plugins until the problem goes away and report back.
I'm using build 676 of citizens2 on craftbukkit 1.4.7r1.0 recommended build on my server with no problem. Maybe newer dev builds of citizens are causing your server freeze problems. I recommend trying 676.
-
View User Profile
-
Send Message
Posted Feb 10, 2013I have noticed a slight bug with factions. When someone names there sentry after another player and then kill him the player he is named after loses power. Would there be any way to fix that?
-
View User Profile
-
Send Message
Posted Feb 9, 2013Doesnt work for any 1.4.7 version, tested on 5 servers with difirent configuration and diferent plugins.
-
View User Profile
-
Send Message
Posted Feb 9, 2013I have installed Citizens 2.0.7 and Sentry 1.3.1, when i create a citizens npc all its ok, but when i type /trait sentry it shutdown my server....So this is broken, please fix it.
-
View User Profile
-
Send Message
Posted Feb 7, 2013Hmm, not creating config file on load, is this because of this week's citizen update?
-
View User Profile
-
Send Message
Posted Feb 7, 2013Is there any fix for the bodyguards doing no damage bug? It's quite annoying, and it's a fairly important part of my server that players can get bodyguards.
-
View User Profile
-
Send Message
Posted Feb 6, 2013@Cuerdas
yes it does im using it
-
View User Profile
-
Send Message
Posted Feb 6, 2013@jimbobt123
i am having the exact same problem. i have tried changing many settings on a sentry but i can't get one do do melee damage while guarding someone.
@Cuerdas
Could you tell me how you solved the citizens/sentry compatibility issue? I have them both updated to the latest versions but i cannot get Sentry to work.
-
View User Profile
-
Send Message
Posted Feb 6, 2013Could you make it so it can attack certain Guilds?
-
View User Profile
-
Send Message
Posted Feb 5, 2013@Cuerdas
SOLVED
-
View User Profile
-
Send Message
Posted Feb 5, 2013Sentry doesnt work with 1.4.7 R1.0
-
View User Profile
-
Send Message
Posted Feb 3, 2013Hi how do I make my NPC face a certain direction?
-
View User Profile
-
Send Message
Posted Feb 2, 2013I have an issue where if I set a sentry to guard a player (I'm using Denizens right now to sell bodyguards to players), the sentry is not able to damage anything. I've tried making a new sentry, adding pigs to its target list and spawning some pigs around it, and the sentry kills them. If I then try setting the sentry to guard a player, it can't do any damage, even though it swings.
-
View User Profile
-
Send Message
Posted Feb 2, 2013Hi.. I'm using Sentry 1.3, and I have problem with Lookouts. They are not teleporting when lost their target. They can walk back if they are close to the position set by /npc path, but not if they are further. In earlier versions they were teleporting from further locations w/o any problems, but now NPC just staying and waiting out of place they should keep.
I'm using SpigotMC #396 (1.4.6) and I have clear log w/o any errors. I tried several changes in config but with the same result. Am I doing something wrong?
btw: You are doing great work! ;)
-
View User Profile
-
Send Message
Posted Feb 1, 2013@DonneR93
There have been builds of craftbukkit for 1.4.7 for several weeks now. the recommended build just came out yesterday.
@byzanemp skins are a client-side issue, you cant change them from the server until mojang makes it so. or with a custom client like spout.
-
View User Profile
-
Send Message
Posted Feb 1, 2013will there be an update for custom skins to fix the annoying problems and without the spout hassle?