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 May 3, 2013Not going to work with 1.5.2 until updated. That's how bukkit works nowadays.
-
View User Profile
-
Send Message
Posted May 3, 2013not working with 1.5.2
03.05 10:13:04 [Server] INFO at java.lang.ClassLoader.loadClass(Unknown Source) 03.05 10:13:04 [Server] INFO at java.lang.ClassLoader.loadClass(Unknown Source) 03.05 10:13:04 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53) 03.05 10:13:04 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:70) 03.05 10:13:04 [Server] INFO Caused by: java.lang.ClassNotFoundException: net.minecraft.server.v1_5_R2.Packet 03.05 10:13:04 [Server] INFO at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573) 03.05 10:13:04 [Server] INFO at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:410) 03.05 10:13:04 [Server] INFO at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:477) 03.05 10:13:04 [Server] INFO at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:226) 03.05 10:13:04 [Server] INFO at net.minecraft.server.v1_5_R3.MinecraftServer.r(MinecraftServer.java:513) 03.05 10:13:04 [Server] INFO at org.bukkit.craftbukkit.v1_5_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) 03.05 10:13:04 [Server] INFO at org.bukkit.craftbukkit.v1_5_R3.scheduler.CraftTask.run(CraftTask.java:53) 03.05 10:13:04 [Server] INFO at net.citizensnpcs.Citizens$1.run(Citizens.java:273) 03.05 10:13:04 [Server] INFO at net.citizensnpcs.api.npc.SimpleNPCDataStore.loadInto(SimpleNPCDataStore.java:36) 03.05 10:13:04 [Server] INFO at net.citizensnpcs.npc.CitizensNPC.load(CitizensNPC.java:130) 03.05 10:13:04 [Server] INFO at net.citizensnpcs.npc.CitizensNPC.spawn(CitizensNPC.java:208) 03.05 10:13:04 [Server] INFO at net.aufdemrand.sentry.SentryTrait.onSpawn(SentryTrait.java:111) 03.05 10:13:04 [Server] INFO at net.aufdemrand.sentry.SentryTrait.ensureInst(SentryTrait.java:132) 03.05 10:13:04 [Server] INFO java.lang.NoClassDefFoundError: net/minecraft/server/v1_5_R2/Packet 03.05 10:13:04 [Server] WARNING Task #28 for Citizens v2.0.8-SNAPSHOT (build 803) generated an exception 03.05 10:13:03 [Server] INFO The trait sentry failed to load for NPC ID: 0.
-
View User Profile
-
Send Message
Posted May 1, 2013I'm not sure, but it seems that bodyguards bypass lockette. So locked wood doors can by bypassed using a bodyguard.
-
View User Profile
-
Send Message
Posted Apr 30, 2013Are you finally adding the Factions enemy functionality (like in Towny)?
https://github.com/jrbudda/Sentry/issues/89
-
View User Profile
-
Send Message
Posted Apr 30, 2013Just to show that Im not pissing you around, I even created a short video showing the bug.
http://www.youtube.com/watch?v=MDJyh0Ivx_o&feature=youtu.be
-
View User Profile
-
Send Message
Posted Apr 30, 2013This is definitely a problem with Citizens. All other plugins disabled bar the latest version of Citizens, Sentry and Denizen. Or it's a problem with Craftbukkit.
Arrows, just wont appear visible. And this is a must be Citizens bug...some NPC's spawn off-place, but shoot from the place where they are ment to be. It's like a ghost shooting arrows, and the real NPC is around 10 blocks away. The weird thing is, when the NPC's are off-place, the arrows from the "ghost" NPC appear perfectly.
Please look into this! Alex. K
-
View User Profile
-
Send Message
Posted Apr 29, 2013@alexk252
Sounds like a client-side issue. If they damage is working correctly then, on the server, the arrows are flying correctly and your client is not rendering them properly, that's not something I can control from within the server-side plugin and I've not had anyone else report this issue.
@alexk252
This is usually caused by a plugin conflict.
@XxJemuxX
I'll check the Faction code, maybe they've changed something. Also be aware the faction names might be case-sensitive.
-
View User Profile
-
Send Message
Posted Apr 28, 2013@XxJemuxX
Are you marked as enemies?
-
View User Profile
-
Send Message
Posted Apr 28, 2013@XxJemuxX
I had a similar problem, then realized I had Entity:Player in the ignore list. Which apparently prevented the Target list from attacking that group.
So i removed Player from ignore list, and left the Group in the target list and they only attacked players from that group, and ignored all others.
-
View User Profile
-
Send Message
Posted Apr 27, 2013Hey, i have a bug: when I do /sentry target add faction:union it says it works, but when someone from union faction comes close it dont attack?????
-
View User Profile
-
Send Message
Posted Apr 27, 2013Found another massive bug. Some sentry NPC's do not take damage from players shooting bows at them. Again, no errors on console.
-
View User Profile
-
Send Message
Posted Apr 27, 2013Hello,
Im getting an issue with Citizens for 1.5.1, using sentry and denizen. You see, all of the NPC's I previously used in 1.4.7 [around 180], most were sentries and all perfectly worked. When I updated to 1.5.1 Citizens, 1.5.1 Sentry and 1.5.1 Denizen, something weird happened.
The sentries who use bows, are bugged. Most time they fire arrows, the arrows are invisible. Dont worry i've check texture packs etc. I'd say out of every 10 arrows they shoot, 1 is visible. I can still take damage from these invisible arrows aswell. When I go close to the sentry, and it's attacking, it almost looks like the arrow is bouncing off of itself when it fires, but the actual arrow damage is still hurting me. It's hard to explain, they're also a few other major problems. Ill try to list below.
So... 1) Arrows still have the sound of being shot. 2) In a quick test I took, about 1/10 arrows shot are visible. 3) The damage of 10 arrows on a player is still seen, even though only 1 shot arrow is visible. 4) Up-close, it looks like the arrows are shot by the NPC, but immediately after are bounced back, and "invisible" the arrow still follows it's trajectory and hits the player. 5) It sometimes look like the arrows are shooting into the NPC's own head as they fire them. [Weird, I know.] 6) Some NPC's spawn offplace, though the arrows they shoot are from they're correct place. So the actual entity is around 5 blocks away from where it should be, and the place where the NPC should be is shooting arrows, even though the actual entity is 5 blocks away. So...entity is 5 blocks away from where it should be. Arrows are shot from the correct location, though the actual NPC entity isn't there to shoot the arrow, it has teleported around 5-10 blocks away.
It is really hard to describe. I've tried downgrading versions of sentry to the other 1.5.1 jar, though it doesn't help.
Can someone please report this issue, or tell me the cause?
Thankyou, Alex. K
-
View User Profile
-
Send Message
Posted Apr 26, 2013@jrbudda
Warningrange is for warn and greet? Alright, thank you!
-
View User Profile
-
Send Message
Posted Apr 26, 2013@Shad0wSpl1c3r
Warn/greet is off by default, set the warningrange to 0.
-
View User Profile
-
Send Message
Posted Apr 25, 2013Help. Me. Please :C So. Mad. Our server just installed this, and we made about 100 NPCs in the main castle. Everything was working fine, until we realized that they were all spamming chat... Our Archer sentries need to have a high range (60), so they greet us way too often... How do we stop the Sentries from using any Greeting or Warning messages? I was disappointed in the fact that the Citizens2 config for the chat min/max settings didn't carry over the trait, and I was kind of relying on it :P
-
View User Profile
-
Send Message
Posted Apr 25, 2013@jrbudda
Well... As it turns out I was using citizens 1 but that makes no sense. I got it off of the citizens 2 dl page. Weird... Anyhoo, problem solved.
-
View User Profile
-
Send Message
Posted Apr 25, 2013@jrbudda
I don't believe so. I got it off of the citizens 2 page on bukkit dev, so one would think that it would be citizens 2. Yes?
-
View User Profile
-
Send Message
Posted Apr 25, 2013Zombie sentries and any other type get crazy when start attacking :S, when you put them like "/npc type player" they become normal again. Using 1.3.3.3 on bukkit 1.5.1.
-
View User Profile
-
Send Message
Posted Apr 24, 2013The problem, from what I could tell, was a missing trailing period in a BIND configuration file. I sent an email to the DNS server administrator contact and the Technical contact from the domain whois. It was fixed a few hours later.
Didn't even get a "thank you", bah ;)
-
View User Profile
-
Send Message
Posted Apr 24, 2013I opened a ticket 3 month ago (https://github.com/jrbudda/Sentry/issues/89). I would like to know if you are implementing it or not?.