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 Apr 8, 2013@jrbudda
This is what is confusing to me. There are absolutely no console errors. None of my guards are dying. I've even tried changing the server config setting "DieLikePlayers" to true, but it makes no difference.
OK, I have narrowed this down to denizen. I have stripped all plugins and when I remove denizen, sentries die like normal. I'm using sentry version 1.3.3.2 and latest dev version of denizen #993(http://ci.citizensnpcs.com/view/Add-ons/job/Denizen/) and latest version of craftbukkit, #2744, 1.5.1-R0.2 (http://dl.bukkit.org/downloads/craftbukkit/).
-
View User Profile
-
Send Message
Posted Apr 8, 2013When I attack one of my sentry's there Armour and weapons disappear does anyone know why this is?
(I'm on spout and use bpermissions for my permissions file, also I have the plugin heroes)
-
View User Profile
-
Send Message
Posted Apr 8, 2013@Thrax33
On the wiki
@malaxan
Check for console errors.
-
View User Profile
-
Send Message
Posted Apr 7, 2013@malaxan Ok, NM, this appears to be the denizen /trait health doing this. However, now I have a different problem. Sentries are not dying! Their health gets low (I know because I can type /sentry info), but they do not die.
I'm on the latest version of everything including latest dev version of craftbukkit.
-
View User Profile
-
Send Message
Posted Apr 7, 2013/sentry respawn 0 does not seem to work right. According to wiki this is supposed to turn automatic respawns OFF, but instead it causes the sentry to respawn over and over very quickly.
-
View User Profile
-
Send Message
Posted Apr 7, 2013When setting waypoints "provider: wander" in the saves.yml the sentry seems to fly / hop at high speed. Can you please look at the wander function?
-
View User Profile
-
Send Message
Posted Apr 6, 2013is sentry updated to work with citizens 1.5.1? if so where are the download links for sentry?
-
View User Profile
-
Send Message
Posted Apr 6, 2013@RandomSomething98
Download the jar again, jars are zipped, looks like yours is corrupted.
-
View User Profile
-
Send Message
Posted Apr 6, 2013The priest was the dog he loved her. She ate a piece of meat, he killed her, and buried in the ground, and the inscription, wrote that:
The priest was the dog he loved her. She ate a piece of meat, he killed her, and buried in the ground, and the inscription, wrote that:
The priest was the dog...
-
View User Profile
-
Send Message
Posted Apr 5, 2013I got an error, which won't let the sentry plugin load. Citizens2 works fine, though.
I don't have any zip files on my server, fyi.
-
View User Profile
-
Send Message
Posted Apr 5, 2013@trikychase
You are using Sentry for 1.5.1 on craftbukkit 1.5.0
-
View User Profile
-
Send Message
Posted Apr 5, 2013Having A Issue When I Try To Do Any Sentry Commands. In The Console I Get This Message.
When I Run This Command /npc create bob
trait sentryI get this?
05.04 15:22:34 [Server] SEVERE ... 28 more 05.04 15:22:34 [Server] SEVERE at java.lang.ClassLoader.loadClass(Unknown Source) 05.04 15:22:34 [Server] SEVERE at java.lang.ClassLoader.loadClass(Unknown Source) 05.04 15:22:34 [Server] SEVERE at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53) 05.04 15:22:34 [Server] SEVERE at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:70) 05.04 15:22:34 [Server] SEVERE Caused by: java.lang.ClassNotFoundException: net.minecraft.server.v1_5_R2.Packet 05.04 15:22:34 [Server] SEVERE at net.minecraft.server.v1_5_R1.ThreadServerApplication.run(SourceFile:573) 05.04 15:22:34 [Server] SEVERE at net.minecraft.server.v1_5_R1.MinecraftServer.run(MinecraftServer.java:409) 05.04 15:22:34 [Server] SEVERE at net.minecraft.server.v1_5_R1.MinecraftServer.q(MinecraftServer.java:476) 05.04 15:22:34 [Server] SEVERE at net.minecraft.server.v1_5_R1.DedicatedServer.r(DedicatedServer.java:225) 05.04 15:22:34 [Server] SEVERE at net.minecraft.server.v1_5_R1.MinecraftServer.r(MinecraftServer.java:580) 05.04 15:22:34 [Server] SEVERE at net.minecraft.server.v1_5_R1.DedicatedServerConnection.b(SourceFile:30) 05.04 15:22:34 [Server] SEVERE at net.minecraft.server.v1_5_R1.ServerConnection.b(SourceFile:35) 05.04 15:22:34 [Server] SEVERE at net.minecraft.server.v1_5_R1.PlayerConnection.d(PlayerConnection.java:113) 05.04 15:22:34 [Server] SEVERE at net.minecraft.server.v1_5_R1.NetworkManager.b(NetworkManager.java:292) 05.04 15:22:34 [Server] SEVERE at net.minecraft.server.v1_5_R1.Packet3Chat.handle(Packet3Chat.java:44) 05.04 15:22:34 [Server] SEVERE at net.minecraft.server.v1_5_R1.PlayerConnection.a(PlayerConnection.java:840) 05.04 15:22:34 [Server] SEVERE at net.minecraft.server.v1_5_R1.PlayerConnection.chat(PlayerConnection.java:885) 05.04 15:22:34 [Server] SEVERE at net.minecraft.server.v1_5_R1.PlayerConnection.handleCommand(PlayerConnection.java:967) 05.04 15:22:34 [Server] SEVERE at org.bukkit.craftbukkit.v1_5_R1.CraftServer.dispatchCommand(CraftServer.java:514) 05.04 15:22:34 [Server] SEVERE at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:186) 05.04 15:22:34 [Server] SEVERE at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) 05.04 15:22:34 [Server] SEVERE at net.citizensnpcs.Citizens.onCommand(Citizens.java:216) 05.04 15:22:34 [Server] SEVERE at net.citizensnpcs.api.command.CommandManager.executeSafe(CommandManager.java:156) 05.04 15:22:34 [Server] SEVERE at net.citizensnpcs.api.command.CommandManager.execute(CommandManager.java:87) 05.04 15:22:34 [Server] SEVERE at net.citizensnpcs.api.command.CommandManager.executeMethod(CommandManager.java:132) 05.04 15:22:34 [Server] SEVERE at java.lang.reflect.Method.invoke(Unknown Source) 05.04 15:22:34 [Server] SEVERE at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 05.04 15:22:34 [Server] SEVERE at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 05.04 15:22:34 [Server] SEVERE at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 05.04 15:22:34 [Server] SEVERE at net.citizensnpcs.commands.NPCCommands.create(NPCCommands.java:403) 05.04 15:22:34 [Server] SEVERE at net.citizensnpcs.api.npc.AbstractNPC.addTrait(AbstractNPC.java:64) 05.04 15:22:34 [Server] SEVERE at net.aufdemrand.sentry.SentryTrait.onSpawn(SentryTrait.java:111) 05.04 15:22:34 [Server] SEVERE at net.aufdemrand.sentry.SentryTrait.ensureInst(SentryTrait.java:132) 05.04 15:22:34 [Server] SEVERE java.lang.NoClassDefFoundError: net/minecraft/server/v1_5_R2/Packet
-
View User Profile
-
Send Message
Posted Apr 5, 2013@gamemoe Bodyguards obey all damage protection. If you want to use bodyguards with Modifyworld you need to configure modifyworld to allow that damage. Or disable modifyworld for the default player group.
-
View User Profile
-
Send Message
Posted Apr 5, 2013in fact: First create the npc and put him /trate sentry The second prescribes him the purpose entity:monsters and the miracle of all works with Modifyworld. The third set /sentry guard player And the same npc at the same place cannot corrupt the same monster. And you don't understand? Yes, without Modifyworld it works, but it does not mean that the problem blame this module! It only means that the principle of damage in the mode of bodyguards is fundamentally different from the usual mode, this should not be so, and the problem is in your module!
is it clear or you can more detail? I can't for you debug your code!
-
View User Profile
-
Send Message
Posted Apr 5, 2013@jrbudda
Cool!! are you develop bodyguards mode? only this mode demage not work! may you use event system which uses Modifyworld to hook changes the damage events around. nor do you have about this or any concepts? why you are not doing so in the rest of the cases when bodyguards off? you have absolutely no idea?
you have absolutely no idea? why i not included bodyguards damage works and then i included bodyguards damage not works... it is wery cool!!!
or you just don't see that in your code uses the same as the Modifyworld when used bodyguards.
can you just don't understand me... do you think - what the fuck is some dude garbage suffers when all my fault Modifyworld.
-
View User Profile
-
Send Message
Posted Apr 5, 2013@gamemoe
I have absolutely no idea what you are saying. I do know that Modifyworld can cause '0 damage' issues because it changes the damage events around.
-
View User Profile
-
Send Message
Posted Apr 5, 2013@Necromedes
I'm pretty sure you have Citizens 1 installed.
-
View User Profile
-
Send Message
Posted Apr 3, 2013Sorry for my previous explosion on here everyone. I was REALLY stressed out and I think I actually lost my mind for a while.
In case no one has seen my previous post, here is my problem. I am using 1.4.7 EVERYTHING, bukkit, plugins, ect... because I knew a lot of them broke in 1.5.1. I have citizens 2 installed and Sentry as well. I can get citizens 2 to work perfectly for the most part but it will not even recognize the terms type or trait to my knowledge. Meaning, I cannot make an npc that is a creeper, ender man, etc... Its all the default steve skin. And this also means that I cannot set up a sentry. I REALLY want sentries on my server but literally, EVERYTIME I have tried to get it to work it does the same thing! One would think it was something like an older version of java or something like that but I guess not. And another note: When I try to make a sentry, it says "Internal Error Occurred While Attempting To Perform This Command" Or something like that. Its not fair to me that almost everyone else seems to be able to get this to work except me. I have found other threads with this problem but no one seems to have an answer or they're being an ass. So please, someone help me with this, I'm tired of not knowing the answer to a problem I have had for years.
I copied this directly from the console. I, however, do not know how to access the server log file in the bukkit folder, so I hope this will help to explain the problem or someone can tell me how to access the log.
20:31:01 [INFO] Necromedes issued server command: /sentry info 20:31:01 [SEVERE] null org.bukkit.command.CommandException: Unhandled exception executing command 'sent ry' in plugin Sentry v1.3.1 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:18 6) at org.bukkit.craftbukkit.v1_4_R1.CraftServer.dispatchCommand(CraftServe r.java:514) at net.minecraft.server.v1_4_R1.PlayerConnection.handleCommand(PlayerCon nection.java:980) at net.minecraft.server.v1_4_R1.PlayerConnection.chat(PlayerConnection.j ava: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:3 0) at net.minecraft.server.v1_4_R1.MinecraftServer.r(MinecraftServer.java:5 98) at net.minecraft.server.v1_4_R1.DedicatedServer.r(DedicatedServer.java:2 24) at net.minecraft.server.v1_4_R1.MinecraftServer.q(MinecraftServer.java:4 94) at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java :427) at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:8 49) Caused by: java.lang.NoSuchMethodError: net.citizensnpcs.Citizens.getNPCSelector ()Lnet/citizensnpcs/npc/NPCSelector; at net.aufdemrand.sentry.Sentry.onCommand(Sentry.java:567) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ... 15 more
As you can see, I tried to use the simple command /sentry info to get its stats but it popped up with the error occurred thing. Also, as far as I can tell, its not detecting it as a sentry AT ALL. I use the trait command in the npc create string and it creates the npc, however, I see no indication that the trait has actually been applied. And finally, when I type the /trait sentry command it says unknown command, type help. I can use the /sentry help command and see all of the commands for the sentry plugins, I just can't do anything with them...
P.S. Sorry for the long post.
-
View User Profile
-
Send Message
Posted Apr 3, 2013use this http://ci.citizensnpcs.com/job/Citizens2/ http://www.sendspace.com/file/3emb6e
and do not use /sentry guard <player>
-
View User Profile
-
Send Message
Posted Apr 3, 2013anyone know if this works with 1.5.1 I havnt been able to get it to work