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 23, 2015um after a name change i cant edit any sentry? i changed the owner name to my new name in citizens file? any help?
-
View User Profile
-
Send Message
Posted Mar 22, 2015@zrmulikung
Seriously? http://wiki.citizensnpcs.co/Sentry#Updates
-
View User Profile
-
Send Message
Posted Mar 22, 2015Can you make KingdomsLite Support for Kingdom vs Kingdom server?
-
View User Profile
-
Send Message
Posted Mar 22, 2015@mcmonkey4eva
give me sentry for 1.8 server plz
-
View User Profile
-
Send Message
Posted Mar 21, 2015@zrmulikung
You're running Sentry for 1.8.3 on a 1.8 server. Downdate or update things as needed.
-
View User Profile
-
Send Message
Posted Mar 21, 2015I need help!
[20:55:48] [Server thread/ERROR]: [Citizens] An exception occurred while the trait sentry was spawning for NPC ID 0. [20:55:48] [Server thread/WARN]: java.lang.NoClassDefFoundError: net/minecraft/server/v1_8_R2/Packet [20:55:48] [Server thread/WARN]: at net.aufdemrand.sentry.SentryTrait.ensureInst(SentryTrait.java:134) [20:55:48] [Server thread/WARN]: at net.aufdemrand.sentry.SentryTrait.onSpawn(SentryTrait.java:116) [20:55:48] [Server thread/WARN]: at net.citizensnpcs.npc.CitizensNPC.spawn(CitizensNPC.java:205) [20:55:48] [Server thread/WARN]: at net.citizensnpcs.npc.CitizensNPC.load(CitizensNPC.java:120) [20:55:48] [Server thread/WARN]: at net.citizensnpcs.api.npc.SimpleNPCDataStore.loadInto(SimpleNPCDataStore.java:59) [20:55:48] [Server thread/WARN]: at net.citizensnpcs.Citizens$2.run(Citizens.java:295) [20:55:48] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftTask.run(CraftTask.java:53) [20:55:48] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:349) [20:55:48] [Server thread/WARN]: at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:668) [20:55:48] [Server thread/WARN]: at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:284) [20:55:48] [Server thread/WARN]: at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:609) [20:55:48] [Server thread/WARN]: at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:517) [20:55:48] [Server thread/WARN]: at java.lang.Thread.run(Unknown Source) [20:55:48] [Server thread/WARN]: Caused by: java.lang.ClassNotFoundException: net.minecraft.server.v1_8_R2.Packet [20:55:48] [Server thread/WARN]: at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:67) [20:55:48] [Server thread/WARN]: at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:62) [20:55:48] [Server thread/WARN]: at java.lang.ClassLoader.loadClass(Unknown Source) [20:55:48] [Server thread/WARN]: at java.lang.ClassLoader.loadClass(Unknown Source)
-
View User Profile
-
Send Message
Posted Mar 17, 2015After updating to the 1.8.3 dev version for spigot 1.8.3, targeting doesn't seem to work. Sentries no longer pursue players when seeing them; they only fight back if attacked.
-
View User Profile
-
Send Message
Posted Mar 12, 2015@zafer00
We do not provide back-support. Update your server.
-
View User Profile
-
Send Message
Posted Mar 12, 2015Please fix 1.7.10 version npc cant target entity:all only entity:<playername> . Fix that bug pls
-
View User Profile
-
Send Message
Posted Mar 12, 2015@mcmonkey4eva
It's the 1.8.2 Build 3 Version.
EDIT: I see what I did wrong, needed the 1.8.3 Build.
-
View User Profile
-
Send Message
Posted Mar 12, 2015@freeflo
You can't use 1.8.3 plugins on a 1.8 server.
-
View User Profile
-
Send Message
Posted Mar 12, 2015Just downloaded the Alpha of Citizens for 1.8 as well as Sentry for 1.8. However I cannot add the trait to the NPC and get this error.
12.03 11:30:50 [Server] WARN at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:506) 12.03 11:30:50 [Server] WARN at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:598) 12.03 11:30:50 [Server] WARN at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:284) 12.03 11:30:50 [Server] WARN at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:645) 12.03 11:30:50 [Server] WARN at java.util.concurrent.FutureTask.run(Unknown Source) 12.03 11:30:50 [Server] WARN at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) 12.03 11:30:50 [Server] WARN at net.minecraft.server.v1_8_R1.PacketHandleTask.run(SourceFile:13) 12.03 11:30:50 [Server] WARN at net.minecraft.server.v1_8_R1.PacketPlayInChat.a(SourceFile:9) 12.03 11:30:50 [Server] WARN at net.minecraft.server.v1_8_R1.PacketPlayInChat.a(SourceFile:37) 12.03 11:30:50 [Server] WARN at net.minecraft.server.v1_8_R1.PlayerConnection.a(PlayerConnection.java:919) 12.03 11:30:50 [Server] WARN at net.minecraft.server.v1_8_R1.PlayerConnection.handleCommand(PlayerConnection.java:1058) 12.03 11:30:50 [Server] WARN at org.bukkit.craftbukkit.v1_8_R1.CraftServer.dispatchCommand(CraftServer.java:625) 12.03 11:30:50 [Server] WARN at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:140) 12.03 11:30:50 [Server] WARN at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) 12.03 11:30:50 [Server] WARN at net.citizensnpcs.Citizens.onCommand(Citizens.java:236) 12.03 11:30:50 [Server] WARN at net.citizensnpcs.api.command.CommandManager.executeSafe(CommandManager.java:178) 12.03 11:30:50 [Server] WARN at net.citizensnpcs.api.command.CommandManager.execute(CommandManager.java:90) 12.03 11:30:50 [Server] WARN at net.citizensnpcs.api.command.CommandManager.executeMethod(CommandManager.java:154) 12.03 11:30:50 [Server] WARN at java.lang.reflect.Method.invoke(Unknown Source) 12.03 11:30:50 [Server] WARN at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 12.03 11:30:50 [Server] WARN at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 12.03 11:30:50 [Server] WARN at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 12.03 11:30:50 [Server] WARN at net.citizensnpcs.commands.TraitCommands.toggle(TraitCommands.java:152) 12.03 11:30:50 [Server] WARN at net.citizensnpcs.commands.TraitCommands.addTrait(TraitCommands.java:59) 12.03 11:30:50 [Server] WARN at net.citizensnpcs.api.npc.AbstractNPC.addTrait(AbstractNPC.java:88) 12.03 11:30:50 [Server] WARN at net.citizensnpcs.api.npc.AbstractNPC.addTrait(AbstractNPC.java:109) 12.03 11:30:50 [Server] WARN at net.aufdemrand.sentry.SentryTrait.onSpawn(SentryTrait.java:116) 12.03 11:30:50 [Server] WARN at net.aufdemrand.sentry.SentryTrait.ensureInst(SentryTrait.java:134) 12.03 11:30:50 [Server] WARN java.lang.NoClassDefFoundError: net/minecraft/server/v1_8_R2/Packet
-
View User Profile
-
Send Message
Posted Feb 11, 2015@mcmonkey4eva
THX
-
View User Profile
-
Send Message
Posted Feb 10, 2015@MarioTimeSTeam
Wrong version of Sentry. Get the correct one here: http://wiki.citizensnpcs.co/Sentry#Updates
-
View User Profile
-
Send Message
Posted Feb 10, 2015What is this ?????
When i wold made a Guard it say this in the consol:
[19:40:57] [Server thread/WARN]: java.lang.NoClassDefFoundError: net/minecraft/server/v1_7_R3/Packet [19:40:57] [Server thread/WARN]: at net.aufdemrand.sentry.SentryTrait.ensureInst(SentryTrait.java:134) [19:40:57] [Server thread/WARN]: at net.aufdemrand.sentry.SentryTrait.onSpawn(SentryTrait.java:116) [19:40:57] [Server thread/WARN]: at net.citizensnpcs.api.npc.AbstractNPC.addTrait(AbstractNPC.java:109) [19:40:57] [Server thread/WARN]: at net.citizensnpcs.api.npc.AbstractNPC.addTrait(AbstractNPC.java:88) [19:40:57] [Server thread/WARN]: at net.citizensnpcs.commands.TraitCommands.addTrait(TraitCommands.java:59) [19:40:57] [Server thread/WARN]: at net.citizensnpcs.commands.TraitCommands.toggle(TraitCommands.java:152) [19:40:57] [Server thread/WARN]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [19:40:57] [Server thread/WARN]: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [19:40:57] [Server thread/WARN]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [19:40:57] [Server thread/WARN]: at java.lang.reflect.Method.invoke(Unknown Source) [19:40:57] [Server thread/WARN]: at net.citizensnpcs.api.command.CommandManager.executeMethod(CommandManager.java:154) [19:40:57] [Server thread/WARN]: at net.citizensnpcs.api.command.CommandManager.execute(CommandManager.java:90) [19:40:57] [Server thread/WARN]: at net.citizensnpcs.api.command.CommandManager.executeSafe(CommandManager.java:178) [19:40:57] [Server thread/WARN]: at net.citizensnpcs.Citizens.onCommand(Citizens.java:236) [19:40:57] [Server thread/WARN]: at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [19:40:57] [Server thread/WARN]: at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:181) [19:40:57] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_8_R1.CraftServer.dispatchCommand(CraftServer.java:643) [19:40:57] [Server thread/WARN]: at net.minecraft.server.v1_8_R1.PlayerConnection.handleCommand(PlayerConnection.java:1083) [19:40:57] [Server thread/WARN]: at net.minecraft.server.v1_8_R1.PlayerConnection.a(PlayerConnection.java:918) [19:40:57] [Server thread/WARN]: at net.minecraft.server.v1_8_R1.PacketPlayInChat.a(PacketPlayInChat.java:26) [19:40:57] [Server thread/WARN]: at net.minecraft.server.v1_8_R1.PacketPlayInChat.a(PacketPlayInChat.java:53) [19:40:57] [Server thread/WARN]: at net.minecraft.server.v1_8_R1.PacketHandleTask.run(SourceFile:13) [19:40:57] [Server thread/WARN]: at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [19:40:57] [Server thread/WARN]: at java.util.concurrent.FutureTask.run(Unknown Source) [19:40:57] [Server thread/WARN]: at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:686) [19:40:57] [Server thread/WARN]: at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:316) [19:40:57] [Server thread/WARN]: at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:627) [19:40:57] [Server thread/WARN]: at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:530) [19:40:57] [Server thread/WARN]: at java.lang.Thread.run(Unknown Source) [19:40:57] [Server thread/WARN]: Caused by: java.lang.ClassNotFoundException: net.minecraft.server.v1_7_R3.Packet [19:40:57] [Server thread/WARN]: at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:91) [19:40:57] [Server thread/WARN]: at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) [19:40:57] [Server thread/WARN]: at java.lang.ClassLoader.loadClass(Unknown Source) [19:40:57] [Server thread/WARN]: at java.lang.ClassLoader.loadClass(Unknown Source) [19:40:57] [Server thread/WARN]: ... 29 more
What shuld i do
Sry for my bad english
PLS help me
-
View User Profile
-
Send Message
Posted Jan 27, 2015Hey i have some problem with sentry, i use build 1.8.2 build 3 for 1.7.10. I have create a example sentry for testing feight, but the npc is hard laggy when he hit players. He move like a player with 999 ping.
How can i fix this problem?
-
View User Profile
-
Send Message
Posted Jan 23, 2015I know is too much ask but you think you can support cauldron servers? In my 1.7.10 server when the sentry dies, this keep attacking his fow, I mean; him respawn inmediatly after death, but "something" invisible keep attacking the enemy who kill him and then my server crash X_X. Thanks a lot I hoe you can make this, your plugin is awesome : 3
-
View User Profile
-
Send Message
Posted Jan 13, 2015@mcmonkey4eva
I checked the next last version out and that seems to work better at first. Though as soon as i add waypoints to them the server crashes. Where do you want my error log?
-
View User Profile
-
Send Message
Posted Jan 12, 2015@Quaziz
Try the various version available on http://wiki.citizensnpcs.co/Versions in the "Updates" box, there should be multiple for 1.7.10 if I remember right... if none of them work, grab the most recent one and post a startup log from running it.
Note that none of the recommend version are flipping 1.7.9, which is, if you can't tell, the /wrong/ version.
-
View User Profile
-
Send Message
Posted Jan 12, 2015Hi! I use citizens-2.0.13-1.7.10-Cauldron-B2.jar for Cauldron 1.7.10 and have got that and denizen working on the server. Those are my favorite plugins togather with Sentry. I was converting everything on my bukkit server to the latest cauldron (spigotMC) server. The only plugin i have'nt got to work is Sentry (R: Sentry 1.8.2 for CB 1.7.9-R0.1 Jun 03, 2014). Citizens 2.0 did'nt work at first, than i downloaded the Cauldron version that works fine. So i was wondering if its possible for you to make a modification for us hwo uses spigot|Cauldron, or whatever fix there needs to be? Thank you for your time and a great plugin!
Cheers!