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 Dec 3, 2013hi @mcmonkey4eva when the next update come ? for citizens and for sentry 1.7.2 ?
-
View User Profile
-
Send Message
Posted Dec 3, 2013@LIMBIN
Are you running 1.6.2? Update to 1.6.4 if so, and get Sentry v1.6.1 from the wiki page and get the latest Citizens build for 1.6.4 at http://ci.citizensnpcs.co/job/Citizens2/1021/
@MrARCO
To quote myself from earlier:
Woo! 1.7-compatible builds already up on the wiki: http://wiki.citizensnpcs.co/Sentry
and the new CI: http://ci.citizensnpcs.co/job/Sentry/
from even earlier:
-+ Hi everyone, I'm mcmonkey, a developer of the Denizen plugin for Citizens and I work with the Citizens team for various things. Jrbudda seems to have gone MIA... so, for now, I'm going to be maintaining Sentry as best I can. I don't have access to this Bukkit page but I have been granted access to the Wiki page so I will keep it updated there.
-
View User Profile
-
Send Message
Posted Dec 3, 2013@mcmonkey4eva
i using the last dev... i plan to work on custom sentry... but right now i don't have much time for it... i will test more... maybe some plugin is affecting that, so i will drop custom sentry for now... i will test more on new dev
-
View User Profile
-
Send Message
Posted Dec 2, 2013I am waiting patiently for 1.7.2! Good luck Jrbudda!
-
View User Profile
-
Send Message
Posted Dec 1, 2013Can some1 help me?
-
View User Profile
-
Send Message
Posted Dec 1, 201302:47:05 [警告] [Sentry] Could not register with Vault! the GROUP target will n ot function. 02:47:05 [严重] java.lang.NoSuchMethodError: net.citizensnpcs.api.npc.NPC.telepo rt(Lorg/bukkit/Location;Lorg/bukkit/event/player/PlayerTeleportEvent$TeleportCau se;)V 02:47:05 [严重] at net.aufdemrand.sentry.SentryInstance.initialize(Sentr yInstance.java:1008) 02:47:05 [严重] at net.aufdemrand.sentry.SentryTrait.onSpawn(SentryTrait .java:127) 02:47:05 [严重] at net.citizensnpcs.api.npc.AbstractNPC.addTrait(Abstrac tNPC.java:71) 02:47:05 [严重] at net.citizensnpcs.api.npc.AbstractNPC.addTrait(Abstrac tNPC.java:50) 02:47:05 [严重] at net.citizensnpcs.commands.TraitCommands.toggle(TraitC ommands.java:141) 02:47:05 [严重] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native M ethod) 02:47:05 [严重] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown S ource) 02:47:05 [严重] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unkno wn Source) 02:47:05 [严重] at java.lang.reflect.Method.invoke(Unknown Source) 02:47:05 [严重] at net.citizensnpcs.api.command.CommandManager.executeMe thod(CommandManager.java:131) 02:47:05 [严重] at net.citizensnpcs.api.command.CommandManager.execute(C ommandManager.java:86) 02:47:05 [严重] at net.citizensnpcs.api.command.CommandManager.executeSa fe(CommandManager.java:155) 02:47:05 [严重] at net.citizensnpcs.Citizens.onCommand(Citizens.java:214 ) 02:47:05 [严重] at org.bukkit.command.PluginCommand.execute(PluginComman d.java:44) 02:47:05 [严重] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCo mmandMap.java:192) 02:47:05 [严重] at org.bukkit.craftbukkit.v1_6_R2.CraftServer.dispatchCo mmand(CraftServer.java:523) 02:47:05 [严重] at net.minecraft.server.v1_6_R2.PlayerConnection.handleC ommand(PlayerConnection.java:954) 02:47:05 [严重] at net.minecraft.server.v1_6_R2.PlayerConnection.chat(Pl ayerConnection.java:872) 02:47:05 [严重] at net.minecraft.server.v1_6_R2.PlayerConnection.a(Playe rConnection.java:829) 02:47:05 [严重] at net.minecraft.server.v1_6_R2.Packet3Chat.handle(Sourc eFile:49) 02:47:05 [严重] at net.minecraft.server.v1_6_R2.NetworkManager.b(Network Manager.java:296) 02:47:05 [严重] at net.minecraft.server.v1_6_R2.PlayerConnection.e(Playe rConnection.java:116) 02:47:05 [严重] at net.minecraft.server.v1_6_R2.ServerConnection.b(Sourc eFile:37) 02:47:05 [严重] at net.minecraft.server.v1_6_R2.DedicatedServerConnectio n.b(SourceFile:30) 02:47:05 [严重] at net.minecraft.server.v1_6_R2.MinecraftServer.t(Minecr aftServer.java:590) 02:47:05 [严重] at net.minecraft.server.v1_6_R2.DedicatedServer.t(Dedica tedServer.java:226) 02:47:05 [严重] at net.minecraft.server.v1_6_R2.MinecraftServer.s(Minecr aftServer.java:486) 02:47:05 [严重] at net.minecraft.server.v1_6_R2.MinecraftServer.run(Mine craftServer.java:419) 02:47:05 [严重] at net.minecraft.server.v1_6_R2.ThreadServerApplication. run(SourceFile:582)
-
View User Profile
-
Send Message
Posted Dec 1, 2013Woo! 1.7-compatible builds already up on the wiki: http://wiki.citizensnpcs.co/Sentry
and the new CI: http://ci.citizensnpcs.co/job/Sentry/
-
View User Profile
-
Send Message
Posted Nov 30, 2013@stutiguias
Details please? Does this happen on the /actual/ latest build (1.6.1) (as opposed to your custom build)?
event:PVNPC and event:PVSENTRY both work perfectly on my test server.
-
View User Profile
-
Send Message
Posted Nov 30, 2013i update sentry to last of build and citizens too , but the event:PvNPC and event:PvSentry don't work !
this bug report here too
https://github.com/jrbudda/Sentry/issues/105
-
View User Profile
-
Send Message
Posted Nov 29, 2013@MrARCO
You need the latest Citizens dev build from: http://ci.citizensnpcs.co/job/Citizens2/
@Kyren_Leah
They *should* be moving towards the target, unless they have long ranged weapon... I have no idea why they wouldn't.
@Snoopyfighter
@Reddoge
You're running an outdated Sentry build, get the latest from the wiki at: http://wiki.citizensnpcs.co/Sentry
also, the latest Citizens2 from the link higher up in this post.
@MythicCynic
@mrtrololow
@MERCHANToDEATH
@Poltergiss
Updated builds are available on the wiki. See above for links. Also, to quote my earlier post:
-+ Hi everyone, I'm mcmonkey, a developer of the Denizen plugin for Citizens and I work with the Citizens team for various things. Jrbudda seems to have gone MIA... so, for now, I'm going to be maintaining Sentry as best I can. I don't have access to this Bukkit page but I have been granted access to the Wiki page so I will keep it updated there.
//If you're having trouble with Sentry, feel free to bug me on the Citizens IRC at -> http://webchat.esper.net/?channels=citizens
-
View User Profile
-
Send Message
Posted Nov 29, 2013Hello guys, will you be able to let us know if a version working on 1.6.4-R2 is on is way? I really love Sentry to protect my Cities.
Thanks
-
View User Profile
-
Send Message
Posted Nov 29, 2013it there a way to make it so sentry don't mesh with eachother when npc are chasing someone they tend to fuse together
-
View User Profile
-
Send Message
Posted Nov 28, 2013Is an update coming soon? Bukkit has been 1.6.4 recommended build for a little while now.
-
View User Profile
-
Send Message
Posted Nov 26, 2013Hello, jrbudda there is a big bug on sentry for citizens 2 [1.6.4] it would be possible to solve him(it) quickly thank you has you jrbudda
-
View User Profile
-
Send Message
Posted Nov 25, 2013Yeah @jrbudda the plugin appears to be broken right now for 1.6.4. I also get the missing class exception when attempting to create a sentry most of the time, and if the exception doesn't pop the plugin acts like the NPC is not a sentry telling "The NPC must be a sentry to perform this action" or something like that.
-
View User Profile
-
Send Message
Posted Nov 25, 2013@Snoopyfighter
Same here
-
View User Profile
-
Send Message
Posted Nov 23, 2013Hi, I am getting a similar error that MrARCO was getting and I cant make sentries. Everything is up to date and I have searched around. Whenever I create a sentry with - -trait sentry (no spaces between those dashes) or do /trait sentry, it just says "java.lang.NoClassDefFoundError: net/minecraft/server/v1_6_R2/Packet". Please help.
-
View User Profile
-
Send Message
Posted Nov 23, 2013I can spawn sentries just fine, but they won't move to attack targets. If a zombie gets close to them and they have target:zombies they hit it, but they don't move towards the zombie - is there some option I forgot to activate to make them move towards their targets?
-
View User Profile
-
Send Message
Posted Nov 22, 2013Heey Sentry Dev's
I have a problem with the latest version on Sentry. I have Citizens updated ( 2.0.10 ) and Sentry ( 1.5.4 ). I also have vault. But when i enter the command ''/npc create Town Guard
Trait sentry''I get a red error message '' java.lang.NoSuchMethodError;net.citizensnpcs.api.npc.NPC.getEntity()Lorg/bukkit/entity/Entity;
I've done anything right, so i have no idea what the problem is. My server is at 1.6.4.
-
View User Profile
-
Send Message
Posted Nov 17, 2013i have SimpleClans2 and start sentry i see "Could not find or register with SimpleClans"... sentry don't have support for SimpleClans2 ?