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 Mar 3, 2013Help pls when i use /sentry ... It says internal error and if i do /trait it says unknown command help pls
-
View User Profile
-
Send Message
Posted Mar 2, 2013@Bob1nz
Yes I think the pathfinding AI for Giants isn't really all there in minecraft code, nothing I can do about it, sorry :( Maybe I'll make it so Giants throw fireballs by default or something.
-
View User Profile
-
Send Message
Posted Mar 2, 2013Is it normal for giant zombies not to attack? im sure iv set it up correctly as if i change the type to another hostile mob type it attacks no problem but when i change it back to giant type it wont attack?
-
View User Profile
-
Send Message
Posted Feb 28, 2013@YuuhiX
Dang something has changed in Citizens I didn't know about. Try dropping back a few builds until I can push out an update http://ci.citizensnpcs.com/job/Citizens2/
Edit: Build 738 should remove that error.
-
View User Profile
-
Send Message
Posted Feb 28, 2013B: 2.0.7 (beta *update recommended*) for CB 1.4.7-R1.0
Today's build
-
View User Profile
-
Send Message
Posted Feb 28, 2013@YuuhiX
What version and build of citizens2 are you using?
-
View User Profile
-
Send Message
Posted Feb 28, 2013Seems to have been a conflict with ModifyWorld, since my melee sentry manages to hit mobs after I removed this. However this error keeps popping up now whenever it's engaging in battle:
[WARNING] [Sentry] Task #17 for Sentry v1.3.1 generated an exception java.lang.NoSuchMethodError: net.citizensnpcs.util.NMS.sendPacketNearby(Lorg/bukkit/Location;Lnet/minecraft/server/v1_4_R1/Packet;D)V at net.aufdemrand.sentry.SentryInstance$SentryLogic.run(SentryInstance.java:1301) at org.bukkit.craftbukkit.v1_4_R1.scheduler.CraftTask.run(CraftTask.java:53) at org.bukkit.craftbukkit.v1_4_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:344) at net.minecraft.server.v1_4_R1.MinecraftServer.r(MinecraftServer.java:530) at net.minecraft.server.v1_4_R1.DedicatedServer.r(DedicatedServer.java:224) at net.minecraft.server.v1_4_R1.MinecraftServer.q(MinecraftServer.java:494) at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:427) at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849)
-
View User Profile
-
Send Message
Posted Feb 28, 2013@YuuhiX
Also sounds like a protection plugin conflict
-
View User Profile
-
Send Message
Posted Feb 28, 2013Whenever my NPC sentry has a melee weapon equipped and is attacking a mob, it doesn't hit or deal damage to the target. With a bow, however, it has no problem hitting it's target. So what's causing melee sentries to not deal damage to mobs?
-
View User Profile
-
Send Message
Posted Feb 28, 2013@jrbudda
I actually had pvp deactivated in multiverse. Thank you very much :)
-
View User Profile
-
Send Message
Posted Feb 28, 2013@SharkROAR
This is usually caused by some kind of protection plugin conflict or perhaps you have PVP turned off at the server level.
@SharkROAR
Try installing citizens2.
-
View User Profile
-
Send Message
Posted Feb 28, 2013I have a problem.. my guards (with sentry trait) do detect players and engage them, but they deal and receive no damage..
This works, however, if they attack monsters.
I also removed my anti-cheat plugin but it still does not work.
-
View User Profile
-
Send Message
Posted Feb 27, 20131.4.7 fail
spigot 1.4.7 build 575
-
View User Profile
-
Send Message
Posted Feb 27, 2013@Minecrafterguy64
AH HA! I had wondered where the sudden rash of people trying to use 1.2.3 came from. Now I know, thanks!
-
View User Profile
-
Send Message
Posted Feb 27, 2013@jrbudda Oh, I normally always download the top option, but I didn't look down. And there it was. Citizens2 :P
-
View User Profile
-
Send Message
Posted Feb 27, 2013@Minecrafterguy64
Again, this plugin is for Citizens 2. As it says all over the page and in the title.
-
View User Profile
-
Send Message
Posted Feb 26, 2013@jrbudda Citizens 1.2.3 for CB 1.4.7-R1.0 I'm not sure what the build is. sry
-
View User Profile
-
Send Message
Posted Feb 25, 2013@Minecrafterguy64
What is your version and build number of citizens2?
-
View User Profile
-
Send Message
Posted Feb 25, 201320:12:41 [SEVERE] Error occurred while enabling Sentry v1.3.1 (Is it up to date?) java.lang.NoClassDefFoundError: net/citizensnpcs/api/CitizensAPI at net.aufdemrand.sentry.Sentry.onEnable(Sentry.java:116) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) at org.bukkit.craftbukkit.v1_4_R1.CraftServer.loadPlugin(CraftServer.java:282) at org.bukkit.craftbukkit.v1_4_R1.CraftServer.enablePlugins(CraftServer.java:264) at org.bukkit.craftbukkit.v1_4_R1.CraftServer.reload(CraftServer.java:596) at org.bukkit.Bukkit.reload(Bukkit.java:184) at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:23) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:186) at org.bukkit.craftbukkit.v1_4_R1.CraftServer.dispatchCommand(CraftServer.java:514) at net.minecraft.server.v1_4_R1.PlayerConnection.handleCommand(PlayerConnection.java:980) at net.minecraft.server.v1_4_R1.PlayerConnection.chat(PlayerConnection.java:898) at net.minecraft.server.v1_4_R1.PlayerConnection.a(PlayerConnection.java:853) at net.minecraft.server.v1_4_R1.Packet3Chat.handle(Packet3Chat.java:44) at net.minecraft.server.v1_4_R1.NetworkManager.b(NetworkManager.java:290) at net.minecraft.server.v1_4_R1.PlayerConnection.d(PlayerConnection.java:113) at net.minecraft.server.v1_4_R1.ServerConnection.b(SourceFile:39) at net.minecraft.server.v1_4_R1.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.v1_4_R1.MinecraftServer.r(MinecraftServer.java:598) at net.minecraft.server.v1_4_R1.DedicatedServer.r(DedicatedServer.java:224) at net.minecraft.server.v1_4_R1.MinecraftServer.q(MinecraftServer.java:494) at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:427) at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849) Caused by: java.lang.ClassNotFoundException: net.citizensnpcs.api.CitizensAPI at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:80) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ... 24 moreWhat is wrong with this, I have Citizens2 and CraftBukkit 1.4.7...?-
View User Profile
-
Send Message
Posted Feb 25, 2013@robotnikthingy
Skeleton sentries will always shoot arrows, bow or not. I can't make them hold bows from within Sentry code.
@Brainiacguy
Whats your version and build number of citizens 2?