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.
What version of sentry/sentinel to use with Citizens v2.0.16-SNAPSHOT (build 1267)? If i try either one they throw errors and don't work. My server isn't updated to 1.9 yet so I'm running latest 1.8 Citizens version.
@Floofsta
You're running the wrong version of... everything. Update Sentry, Citizens, and Spigot to latest dev builds.
EDIT: Version for Citizens and Sentry: http://wiki.citizensnpcs.co/Versions
Hey! Thanks so much for this amazing plugin! However, I am having a problem when i got to set an NPC to sentry. Heres my log. http://pastebin.ca/3430863
@TyloonieGaming
Inquire about "Sentinel", our replacement for Sentry, on IRC here: http://webchat.esper.net/?channels=citizens
Very good plugin, but in the recent time, I've noticed something very bad...
Every time I create a Sentry, it reduces my server TPS with about 0,33%. Sometimes, it even crashes my server. We have 16GB RAM and a good connection, that it not the problem. I honestly don't know what exactly is wrong with the plugin, but whenever I disable Citizens and Sentry, my server TPS bounces up to a smooth 20 TPS again.
Hope you will be able to fix this! - Tyloonie
@JerethKhan
Build #34 is specifically for Spigot 1.9 only. Not sure what you're on about.
Just throwing this out there, I compiled build #34 with 1.9 spigot and spigot-api and it works perfectly. The current build #34 was built with 1.8. So it all works either way ;)
I think this plugin is great :) The only Issue I have is when I re-start the server or re-start the plugins, My Sentry NPC's loose all their items, bar the weapon.
For example: If I "/sentry equip DIAMOND_CHESTPLATE" he'll appear to wear (obviously) Diamond Chestplate armour. If then I have to "/reload" plugins or "stop/start" the server, the NPC sentry looses the armour.
I could "NPC Skin <playerName>" him, but its just not the same as wearing actual armour.
TBH, It's not that trivial, just cosmetic I guess. So I'm not that bothered. I just "/NPC select x; /sentry equip xxx" every time I restart.
I'm just thinking of all the Admins who set-up armies of sentries ;)
How to have shield and sword in hand for sentry? is this possible yet?
Also can mobs like Ghast and Blaze be made so they fly behind the one they guard instead of going on the ground as they would not be able to float at all?
@mcmonkey4eva
Thanks
@pandapipino
Available at http://ci.citizensnpcs.co/job/Sentry/lastSuccessfulBuild/
any news on 1.9 update? Thanks
@Everyone who posted below, I'll say it again: 1.8.8 builds are at http://ci.citizensnpcs.co/job/Sentry/lastSuccessfulBuild/
Hello! im getting this: 27.02 18:02:54 [Server] WARN at java.lang.Thread.run(Thread.java:745) 27.02 18:02:54 [Server] WARN at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) 27.02 18:02:54 [Server] WARN at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) 27.02 18:02:54 [Server] WARN at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) 27.02 18:02:54 [Server] WARN at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) 27.02 18:02:54 [Server] WARN at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) 27.02 18:02:54 [Server] WARN at java.util.concurrent.FutureTask.run(FutureTask.java:266) 27.02 18:02:54 [Server] WARN at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 27.02 18:02:54 [Server] WARN at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) 27.02 18:02:54 [Server] WARN at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) 27.02 18:02:54 [Server] WARN at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) 27.02 18:02:54 [Server] WARN at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) 27.02 18:02:54 [Server] WARN at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162) 27.02 18:02:54 [Server] WARN at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) 27.02 18:02:54 [Server] WARN at me.incomprehendable.dev.pwp.FakeSimpleCommandMap.dispatch(FakeSimpleCommandMap.java:98) 27.02 18:02:54 [Server] WARN at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) 27.02 18:02:54 [Server] WARN at net.citizensnpcs.Citizens.onCommand(Citizens.java:238) 27.02 18:02:54 [Server] WARN at net.citizensnpcs.api.command.CommandManager.executeSafe(CommandManager.java:175) 27.02 18:02:54 [Server] WARN at net.citizensnpcs.api.command.CommandManager.execute(CommandManager.java:87) 27.02 18:02:54 [Server] WARN at net.citizensnpcs.api.command.CommandManager.executeMethod(CommandManager.java:152) 27.02 18:02:54 [Server] WARN at java.lang.reflect.Method.invoke(Method.java:497) 27.02 18:02:54 [Server] WARN at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 27.02 18:02:54 [Server] WARN at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 27.02 18:02:54 [Server] WARN at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 27.02 18:02:54 [Server] WARN at net.citizensnpcs.commands.NPCCommands.create(NPCCommands.java:385) 27.02 18:02:54 [Server] WARN at net.citizensnpcs.api.npc.AbstractNPC.addTrait(AbstractNPC.java:109) 27.02 18:02:54 [Server] WARN at net.aufdemrand.sentry.SentryTrait.onSpawn(SentryTrait.java:114) 27.02 18:02:54 [Server] WARN at net.aufdemrand.sentry.SentryTrait.ensureInst(SentryTrait.java:132) 27.02 18:02:54 [Server] WARN java.lang.NoClassDefFoundError: net/minecraft/server/v1_7_R1/World
I dont know what it means.. can anyone help me out?.. it doesn't let me add the Sentry trait to my npc's but the /sentry help works and shows me all the help for sentry.. its odd.. thanks in advance! :D
im using the latest build of spigot 1.8.8
@Isto29
I am also wanting this plugin to get an update but I am sad to say that I dont think it will anytime soon. I was surprised to see that the Citizens plugin was updated to work with 1.8. So far none of the addons have been updated. Sentry, PostMan and Builder were my favorites but are no longer supported on 1.8 due to them being out of date.
But I still hope for the day they will get updated
Everytime, im trying to give it the Trait: Sentry, im getting this f error: 21.02 09:28:52 [Server] WARN java.lang.NoClassDefFoundError: net/minecraft/server/v1_7_R3/World 21.02 09:28:52 [Server] WARN at net.aufdemrand.sentry.SentryTrait.ensureInst(SentryTrait.java:134) 21.02 09:28:52 [Server] WARN at net.aufdemrand.sentry.SentryTrait.onSpawn(SentryTrait.java:116) 21.02 09:28:52 [Server] WARN at net.citizensnpcs.api.npc.AbstractNPC.addTrait(AbstractNPC.java:109) 21.02 09:28:52 [Server] WARN at net.citizensnpcs.api.npc.AbstractNPC.addTrait(AbstractNPC.java:88) 21.02 09:28:52 [Server] WARN at net.citizensnpcs.commands.TraitCommands.addTrait(TraitCommands.java:64) 21.02 09:28:52 [Server] WARN at net.citizensnpcs.commands.TraitCommands.toggle(TraitCommands.java:157) 21.02 09:28:52 [Server] WARN at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 21.02 09:28:52 [Server] WARN at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 21.02 09:28:52 [Server] WARN at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 21.02 09:28:52 [Server] WARN at java.lang.reflect.Method.invoke(Method.java:497) 21.02 09:28:52 [Server] WARN at net.citizensnpcs.api.command.CommandManager.executeMethod(CommandManager.java:152) 21.02 09:28:52 [Server] WARN at net.citizensnpcs.api.command.CommandManager.execute(CommandManager.java:87) 21.02 09:28:52 [Server] WARN at net.citizensnpcs.api.command.CommandManager.executeSafe(CommandManager.java:175) 21.02 09:28:52 [Server] WARN at net.citizensnpcs.Citizens.onCommand(Citizens.java:238) 21.02 09:28:52 [Server] WARN at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) 21.02 09:28:52 [Server] WARN at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) 21.02 09:28:52 [Server] WARN at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) 21.02 09:28:52 [Server] WARN at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162) 21.02 09:28:52 [Server] WARN at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) 21.02 09:28:52 [Server] WARN at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) 21.02 09:28:52 [Server] WARN at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) 21.02 09:28:52 [Server] WARN at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) 21.02 09:28:52 [Server] WARN at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 21.02 09:28:52 [Server] WARN at java.util.concurrent.FutureTask.run(FutureTask.java:266) 21.02 09:28:52 [Server] WARN at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) 21.02 09:28:52 [Server] WARN at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) 21.02 09:28:52 [Server] WARN at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) 21.02 09:28:52 [Server] WARN at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) 21.02 09:28:52 [Server] WARN at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) 21.02 09:28:52 [Server] WARN at java.lang.Thread.run(Thread.java:745) 21.02 09:28:52 [Server] WARN Caused by: java.lang.ClassNotFoundException: net.minecraft.server.v1_7_R3.World 21.02 09:28:52 [Server] WARN at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:91) 21.02 09:28:52 [Server] WARN at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) 21.02 09:28:52 [Server] WARN at java.lang.ClassLoader.loadClass(ClassLoader.java:424) 21.02 09:28:52 [Server] WARN at java.lang.ClassLoader.loadClass(ClassLoader.java:357) 21.02 09:28:52 [Server] WARN ... 30 more
Update THIS TO Sentry for 1.8.x FAST!
wiki isn't available. Please don't say that's the end of the project :( Please work further
1.8.8 builds are at http://ci.citizensnpcs.co/job/Sentry/lastSuccessfulBuild/
Devs for citizens/sentry really are dropping the ball.