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 1, 2013I also have that error most of the guys here have, I got the 1.4.6 craftbukkit version (because it obviously doesn't exist a 1.4.7 version yet) and playing on Minecraft 1.4.7, And i've tried to download both citizens for 1.4.6 and 1.4.7 but the same error occurs when I try to set him as a Sentry.. I used this command: /npc create House Guard
trait sentryTook a printscreen: http://imgur.com/d6k0gkk
-
View User Profile
-
Send Message
Posted Jan 29, 2013@Gam3R3ap3r
That's a version conflict between craftbukkit and citizens. see http://wiki.citizensnpcs.com/Downloads
-
View User Profile
-
Send Message
Posted Jan 29, 2013When ever i try to add any npc i keep getting the error, i have also put the console's error here http://pastebin.com/d911bYFP
please report this error:[See console]
java.lang.NoSuchFieldError: bukkitEntity
-
View User Profile
-
Send Message
Posted Jan 25, 2013I to do indeed thank you it works, however when it returns to its location it is full effect as if it undermined see the following picture: http://www.noelshack.com/2013-04-1359147665-2013-01-25-22-00-25.png Thx
-
View User Profile
-
Send Message
Posted Jan 25, 2013@Mogrime
give it a waypoint
-
View User Profile
-
Send Message
Posted Jan 25, 2013I thank you for the info notes for the next, but I have a small question, is there a way to ensure that the Sentry returns to his location after he killed a mob? Because they scatter around this without returning to their current location. thank you.
-
View User Profile
-
Send Message
Posted Jan 25, 2013@Mogrime @DragEdward
That's a version conflict between craftbukkit and citizens. see http://wiki.citizensnpcs.com/Downloads
In the future please use pastebin for large error messages.
-
View User Profile
-
Send Message
Posted Jan 25, 2013and i cant see them
-
View User Profile
-
Send Message
Posted Jan 24, 2013@jrbudda
Do you think it would be possible to add Heroes support?
If not, would it be possible to just have sentries ignore heroes damage/health modifications?
This would help me out a lot :)
-
View User Profile
-
Send Message
Posted Jan 22, 2013@Nikecow
I can't reproduce your problem, event:pvnpc and event:pvsentry work fine for me so long as I'm in range.
@Freejack01
Are you also using spout? I need to see the whole error, use pastebin, please.
-
View User Profile
-
Send Message
Posted Jan 22, 2013Not to repeat it it but I got the same error as Chasingcode on Craftbukkit 1.4.6-r0.1 Citizens 2.0.6 build 661 Sentry 1.3 my concern is I see alot of this:
[SEVERE] Could not pass event EntityDamageByEntityEvent to Sentry v1.3
Then my sentry's start to move like a turtle....in slow motion.
-
View User Profile
-
Send Message
Posted Jan 22, 2013@jrbudda
Ya I'm using Spigot 1.4.6 R0.3 which seems to add a few more types of storms with crazy amounts of lightning.
-
View User Profile
-
Send Message
Posted Jan 21, 2013@jrbudda
Oh yeah sorry lol. Thanks anyway.
edit: My sentries don't defend each other when I add as target event:PvSentry or event:PvNPC :(
-
View User Profile
-
Send Message
Posted Jan 21, 2013@deleted_10306201
Not sure how you got that, your sentry was hit by lightning? might be a spout thing, I'll try to handle that in the future.
@Nikecow
Check the wiki.
-
View User Profile
-
Send Message
Posted Jan 21, 2013Will this be updated to 1.4.7 r0-2 anytime D: ?
-
View User Profile
-
Send Message
Posted Jan 21, 2013I received this error a few times today (using Spigot 1.4.6 R0.3 and Citizens 2.06 Build 663)
[SEVERE] Could not pass event EntityDamageByEntityEvent to Sentry v1.3 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at net.minecraft.server.v1_4_6.Entity.a(Entity.java:1587) at net.minecraft.server.v1_4_6.EntityLightning.j_(EntityLightning.java:117) at net.minecraft.server.v1_4_6.World.tickEntities(World.java:1227) at net.minecraft.server.v1_4_6.WorldServer.tickEntities(WorldServer.java:466) at net.minecraft.server.v1_4_6.MinecraftServer.r(MinecraftServer.java:567) at net.minecraft.server.v1_4_6.DedicatedServer.r(DedicatedServer.java:224) at net.minecraft.server.v1_4_6.MinecraftServer.q(MinecraftServer.java:481) at net.minecraft.server.v1_4_6.MinecraftServer.run(MinecraftServer.java:416) at net.minecraft.server.v1_4_6.ThreadServerApplication.run(SourceFile:849) Caused by: java.lang.NullPointerException at net.aufdemrand.sentry.SentryInstance.onDamage(SentryInstance.java:989) at net.aufdemrand.sentry.SentryListener.onDamage(SentryListener.java:296) at sun.reflect.GeneratedMethodAccessor191.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ... 12 more
-
View User Profile
-
Send Message
Posted Jan 20, 2013@jrbudda
No I have tried it full caps, lower caps and mixed, didn't work. Just keeps telling me it's out of range. :/
-
View User Profile
-
Send Message
Posted Jan 20, 2013@Acek94
It's case-sensitive, is that your problem?
-
View User Profile
-
Send Message
Posted Jan 20, 2013Hey,
First of all great mod! Loving it so far! had one or two issues which was as easily solved as by just updating. One problem I can't seem to get past, is the guard option. It tells me that I am not in range? I have set the range to 10, so I'm pretty sure I am in the area.
Anyone have a solution to this? Thanks in advance. :)
-
View User Profile
-
Send Message
Posted Jan 20, 2013@kakirocks
You're using sentry for 1.4.6 on cb 1.4.7
@xxkvatchxx
Sounds like a conflict with a protection plugin.
@Wrafl
/sentry target add entity:player