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 21, 2015@xio2070
You're running Minecraft 1.8 and Sentry for 1.8.6+.
Update one or downdate the other.
http://wiki.citizensnpcs.co/Sentry#Updates
-
View User Profile
-
Send Message
Posted Nov 21, 2015Hey I'm having this error and i don't know how to fix it.
This server is running CraftBukkit version git-Spigot-952179b-bc03b6f (MC: 1.8) (Implementing API version 1.8-R0.1-SNAPSHOT)
Error java.lang.NoClassDefFoundError:net/minecraft/server/v1_8_R3/Packet
-
View User Profile
-
Send Message
Posted Nov 15, 2015@hughjk
Please update Sentry from http://wiki.citizensnpcs.co/Sentry#Updates
-
View User Profile
-
Send Message
Posted Nov 15, 2015The system told me to report this error?
http://pastebin.com/amiY0RAw
-
View User Profile
-
Send Message
Posted Nov 13, 2015Shade056, Either your Citizens 2 is the wrong update (i.e: you need to get two for the same version) or you have the wrong version for what your server is running. I have checked it on my testing server and it works fine.
-
View User Profile
-
Send Message
Posted Nov 7, 2015@mcmonkey4eva
Sentry
Author aufdemrand, jrbudda Version 1.8.6 Citizens build 2.0.16 (Use with CraftBukkit 1.8.6) Other dependencies None required, Vault and a permissions plugin suggested. Download Link
Yes, and I also downloaded the update one to try that.
-
View User Profile
-
Send Message
Posted Nov 7, 2015@Shade056
Then you didn't download off the page I linked.
-
View User Profile
-
Send Message
Posted Nov 7, 2015@mcmonkey4eva
I downloaded the newest one and it still did not work, builder does not work either.
-
View User Profile
-
Send Message
Posted Nov 7, 2015@Shade056
Please download the correct version of Sentry for your minecraft version here: http://wiki.citizensnpcs.co/Sentry#Updates
-
View User Profile
-
Send Message
Posted Nov 7, 2015I got this error for trying to make someone a sentry
07.11 19:18:08 [Server] WARN ... 30 more 07.11 19:18:08 [Server] WARN at java.lang.ClassLoader.loadClass(Unknown Source) 07.11 19:18:08 [Server] WARN at java.lang.ClassLoader.loadClass(Unknown Source) 07.11 19:18:08 [Server] WARN at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:62) 07.11 19:18:08 [Server] WARN at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:67) 07.11 19:18:08 [Server] WARN Caused by: java.lang.ClassNotFoundException: net.minecraft.server.v1_7_R3.Packet 07.11 19:18:08 [Server] WARN at java.lang.Thread.run(Unknown Source) 07.11 19:18:08 [Server] WARN at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:537) 07.11 19:18:08 [Server] WARN at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:629) 07.11 19:18:08 [Server] WARN at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:335) 07.11 19:18:08 [Server] WARN at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:673) 07.11 19:18:08 [Server] WARN at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) 07.11 19:18:08 [Server] WARN at java.util.concurrent.FutureTask.run(Unknown Source) 07.11 19:18:07 [Server] WARN at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) 07.11 19:18:07 [Server] WARN at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) 07.11 19:18:07 [Server] WARN at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(SourceFile:9) 07.11 19:18:07 [Server] WARN at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(SourceFile:37) 07.11 19:18:07 [Server] WARN at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:966) 07.11 19:18:07 [Server] WARN at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1106) 07.11 19:18:07 [Server] WARN at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:620) 07.11 19:18:07 [Server] WARN at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:140) 07.11 19:18:07 [Server] WARN at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) 07.11 19:18:07 [Server] WARN at net.citizensnpcs.Citizens.onCommand(Citizens.java:238) 07.11 19:18:07 [Server] WARN at net.citizensnpcs.api.command.CommandManager.executeSafe(CommandManager.java:175) 07.11 19:18:07 [Server] WARN at net.citizensnpcs.api.command.CommandManager.execute(CommandManager.java:87) 07.11 19:18:07 [Server] WARN at net.citizensnpcs.api.command.CommandManager.executeMethod(CommandManager.java:152) 07.11 19:18:07 [Server] WARN at java.lang.reflect.Method.invoke(Unknown Source) 07.11 19:18:07 [Server] WARN at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 07.11 19:18:07 [Server] WARN at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 07.11 19:18:07 [Server] WARN at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 07.11 19:18:07 [Server] WARN at net.citizensnpcs.commands.TraitCommands.toggle(TraitCommands.java:157) 07.11 19:18:07 [Server] WARN at net.citizensnpcs.commands.TraitCommands.addTrait(TraitCommands.java:64) 07.11 19:18:07 [Server] WARN at net.citizensnpcs.api.npc.AbstractNPC.addTrait(AbstractNPC.java:88) 07.11 19:18:07 [Server] WARN at net.citizensnpcs.api.npc.AbstractNPC.addTrait(AbstractNPC.java:109) 07.11 19:18:07 [Server] WARN at net.aufdemrand.sentry.SentryTrait.onSpawn(SentryTrait.java:116) 07.11 19:18:07 [Server] WARN at net.aufdemrand.sentry.SentryTrait.ensureInst(SentryTrait.java:134) 07.11 19:18:07 [Server] WARN java.lang.NoClassDefFoundError: net/minecraft/server/v1_7_R3/Packet
-
View User Profile
-
Send Message
Posted Oct 27, 2015@mcmonkey4eva
Well, I did what you said, and I was not aware that my spigot was so outdated from the plugin. Thanks so much for the help =)
-
View User Profile
-
Send Message
Posted Oct 27, 2015@DannySan626
Update Spigot to latest 1.8.8 if you want latest Sentry to work.
Otherwise, grab an older version of Sentry that corresponds to your Spigot version.
-
View User Profile
-
Send Message
Posted Oct 27, 2015@mcmonkey4eva
I downloaded the latest build, and I get this still
http://pastebin.com/EVJGPzDa
-
View User Profile
-
Send Message
Posted Oct 24, 2015@DannySan626
http://wiki.citizensnpcs.co/Sentry#Updates
-
View User Profile
-
Send Message
Posted Oct 24, 2015hey.... Can this please be updated? I get this error everytime I try and add the sentry trait to any of my Npc's:
http://pastebin.com/NJAgqV1D
-
View User Profile
-
Send Message
Posted Oct 23, 2015@robpizza
I am Dutch as well, but I do not understand you lol. Kan je het a.u.b in het Nederlands herhalen? Dan kan ik het in correct Engels voor je zetten. ;-) Profit.
-
View User Profile
-
Send Message
Posted Sep 22, 2015Hi, Can you make please add a Feature,
- If You kill A Sentry the console will do a command, That you can set with a command?
Sorry for my bad english #_# Im Dutch
-
View User Profile
-
Send Message
Posted Sep 9, 2015Could you add additional optional attributes to sentries? For example, they could teleport around you like endermen or have the ability to fly.
-
View User Profile
-
Send Message
Posted Aug 22, 2015Hi, is there some version working for 1.8.8.?
-
View User Profile
-
Send Message
Posted Aug 18, 2015can you add NPC Attack speed