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 Nov 12, 2012@robotnikthingy
The warning range. this is all documented on the wiki page.
-
View User Profile
-
Send Message
Posted Nov 12, 2012@jrbudda
ok thanks, i got one more question though
how do you set the distance that a sentry says a welcome message, since right now they spam the chat with welcome messages or say it when you are quite far away from the sentry
-
View User Profile
-
Send Message
Posted Nov 11, 2012@robotnikthingy
Set respawn to 0 (manual respawn) or -1 (delete NPC on death)
Mob hostility can only be done by using the /npc playerlist command. This may have other side-effects.
-
View User Profile
-
Send Message
Posted Nov 11, 2012how can i make it so that when a sentry is killed, it does not respawn?
also how do i make it so that mobs are hostile towards sentries?
-
View User Profile
-
Send Message
Posted Nov 11, 2012@Faldonboy
Can't really do this, controlling the hostility of a mob is not possible.
@lintanguy
Citizens and Heros do not play well together, can't be fixed from Sentry.
@thepwnerman
Follow the instructions?
-
View User Profile
-
Send Message
Posted Nov 11, 2012its so so so so so hard :(
-
View User Profile
-
Send Message
Posted Nov 11, 2012cant figure out how to install :(
-
View User Profile
-
Send Message
Posted Nov 9, 2012Hey i have this plugin and heroes plugin, first time i create a sentry it works fine but when it dies and respawns it only takes 1 hit to kill them... How to solve this?
Oh and another is even though ive equipped the sentries when i hit them the items equipped dissappears... Please help!
-
View User Profile
-
Send Message
Posted Nov 9, 2012Suggestion: Summoner - Throws spawn eggs to summon mobs that become hostile towards whoever they hit
-
View User Profile
-
Send Message
Posted Nov 4, 2012Thanks a lot jrbudda ;) Nice plugin by the way
-
View User Profile
-
Send Message
Posted Nov 3, 2012@jrbudda
many thanks, I think I found it (for those who want the skin is this: http://www.minecraftskins.com/skin/382188/the-dark-knight/) I was like an hour looking for it -.-
-
View User Profile
-
Send Message
Posted Nov 3, 2012@kerberos21
All the skins in the wiki pictures I found by searching http://www.minecraftskins.com/
-
View User Profile
-
Send Message
Posted Nov 3, 2012Amazing skin in the picture, can you tell me where I can download it? (skin, not the texturepack).
-
View User Profile
-
Send Message
Posted Nov 3, 2012@Beminecraft
add to validTargets then calls processTargets()
The source code is on my github
-
View User Profile
-
Send Message
Posted Nov 2, 2012I'm a developer, with my own faction plugin. And I'd need to add multiple targets to the sentry, which methods should I call in the Sentry instance? I tried to add names in the validTargets variable, but it didn't work, and I think setTarget() only admits one target... Any way you could help me? If I could view the source code, I'd be highly grateful! Thanks
-
View User Profile
-
Send Message
Posted Nov 2, 2012Would be nice if random waypoints could be used.
-
View User Profile
-
Send Message
Posted Nov 1, 2012@mconur
You have to either name it after a real player with the skin you want, or use Spout.
-
View User Profile
-
Send Message
Posted Nov 1, 2012Hey I'm new with this citizens plugin and this addon, how can I give my sentries a awesome skin like the one above, cuz everytime i make a witch/brawler or anything else it has the same skin :I
-
View User Profile
-
Send Message
Posted Oct 31, 2012@jrbudda
Thanks, 1.2.1 seems to work.
-
View User Profile
-
Send Message
Posted Oct 31, 2012@gumgumpuntnl
Check the wiki, the 1.4.2 compatible version is there, it's still 'under review' here for whatever reason.