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 Feb 25, 2013Skeleton sentries cant be equiped with anything, and when you make one they dont come with a bow or anything either, making them useless
-
View User Profile
-
Send Message
Posted Feb 24, 2013I get this when trying to use any /sentry command
-
View User Profile
-
Send Message
Posted Feb 24, 2013Hey how it works with the Traget ingore group? Did it work with Pex groups?
-
View User Profile
-
Send Message
Posted Feb 23, 2013@NoobSaibot93
That error is actually being thrown by YAPP, I'm not sure what it is you might have to report it to them.
@Nalgacu
Looks like you are using the wrong version of craftbukkit.
@Mester_00
As it says all over this page, Sentry is for Citizens 2.
-
View User Profile
-
Send Message
Posted Feb 23, 2013Pls fix the path in your plugin from citizensapi. I used the Citizens version: R: 1.2.3 (legacy) for CB 1.4.7-R1.0 Feb 11, 2013 And i showed in the Citizens plugin and there are a CitizensManager. Or which version of Citizens is better to used. Sry for bad english, i'm german.
2013-02-23 17:24:14 [SEVERE] Error occurred while enabling Sentry v1.3.1 (Is it up to date?) java.lang.NoClassDefFoundError: net/citizensnpcs/api/CitizensAPI at net.aufdemrand.sentry.Sentry.onEnable(Sentry.java:116) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) at org.bukkit.craftbukkit.v1_4_R1.CraftServer.loadPlugin(CraftServer.java:282) at org.bukkit.craftbukkit.v1_4_R1.CraftServer.enablePlugins(CraftServer.java:264) at net.minecraft.server.v1_4_R1.MinecraftServer.j(MinecraftServer.java:321) at net.minecraft.server.v1_4_R1.MinecraftServer.e(MinecraftServer.java:300) at net.minecraft.server.v1_4_R1.MinecraftServer.a(MinecraftServer.java:259) at net.minecraft.server.v1_4_R1.DedicatedServer.init(DedicatedServer.java:149) at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:399) at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849) Caused by: java.lang.ClassNotFoundException: net.citizensnpcs.api.CitizensAPI at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:80) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 12 more
-
View User Profile
-
Send Message
Posted Feb 23, 2013Awesome plugin, but, when I want to create a new npc, it says this: Please report this error: [See console] java.lang.NoClassDefFoundError: net/minecraft/server/v1_4_R1/Packet
What I have to do??? D:
-
View User Profile
-
Send Message
Posted Feb 22, 2013Hey! Great plugin you have here! I'm have a bit of a problem here. Every time I do: /sentry target add entity:Mob (Or any other entity) I get this in my console:
22:46:32 [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.NoSuchFieldError: plugin at com.nisovin.yapp.VaultService.isEnabled(VaultService.java:14) at net.aufdemrand.sentry.SentryInstance.processTargets(SentryInstance.ja va:1217) at net.aufdemrand.sentry.Sentry.onCommand(Sentry.java:1160) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ... 15 more
I'm running: Vault, YAPP (my perms plugin), Denizens, Citizens 2 and various other pvp related plugins. Any insight on my problem?
-
View User Profile
-
Send Message
Posted Feb 22, 2013Thanks for your help jrbudda, it works now. We love it!
-
View User Profile
-
Send Message
Posted Feb 21, 2013@Evilhamsta
http://wiki.citizensnpcs.com/Skins
-
View User Profile
-
Send Message
Posted Feb 21, 2013Hey, how do i change the skins of the NPC's I create?
-
View User Profile
-
Send Message
Posted Feb 21, 2013@Leoricx1
That error indicates an incompatible build of Citizens2, please try the latest dev build from the link above in the Installation section.
-
View User Profile
-
Send Message
Posted Feb 20, 2013I'm having problems with NPCs not respawning. Everything else is working great though (thanks for making this plugin!) The only way I can get them to respawn is by dcing/reconnecting or taking a nether portal away and back. It happens with all of my sentries.
The console is spitting out this error when I kill a sentry: http://pastebin.com/2zqcwuyV
And my citizens file looks like this: http://pastebin.com/wR0VfFjm
Oh and is there any workaround to the sentry speed not working? All of my sentries go at random speeds. Thanks!
-
View User Profile
-
Send Message
Posted Feb 20, 2013@baumeistertyp
You are using the wrong version of Citizens. Please get it from the link above the in installation instructions.
-
View User Profile
-
Send Message
Posted Feb 20, 20132013-02-19 18:07:12 [SEVERE] Error occurred while enabling Sentry v1.3.1 (Is it up to date?)
java.lang.NoClassDefFoundError: net/citizensnpcs/api/CitizensAPI
at net.aufdemrand.sentry.Sentry.onEnable(Sentry.java:116)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
at org.bukkit.craftbukkit.v1_4_R1.CraftServer.loadPlugin(CraftServer.java:282)
at org.bukkit.craftbukkit.v1_4_R1.CraftServer.enablePlugins(CraftServer.java:264)
at net.minecraft.server.v1_4_R1.MinecraftServer.j(MinecraftServer.java:321)
at net.minecraft.server.v1_4_R1.MinecraftServer.e(MinecraftServer.java:300)
at net.minecraft.server.v1_4_R1.MinecraftServer.a(MinecraftServer.java:259)
at net.minecraft.server.v1_4_R1.DedicatedServer.init(DedicatedServer.java:149)
at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:399)
at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849)
Caused by: java.lang.ClassNotFoundException: net.citizensnpcs.api.CitizensAPI
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:80)
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
... 12 more
-
View User Profile
-
Send Message
Posted Feb 19, 2013Please post your error messages or I cannot help you. Sentry 1.3.1 is working normally for me using craftbukkit 1.4.7r1.0 and Citizens2 2.0.7 build 732.
-
View User Profile
-
Send Message
Posted Feb 18, 2013Well, it doesnt work with 1.4.7 R1.0 or do i something wrong?
-
View User Profile
-
Send Message
Posted Feb 17, 2013I'm having the same issues as MozartMozart. /npc create name works but the sentry part doesn't. Please fix or tell us what we're doing wrong. Thanks, I've enjoyed what i have read this plugin can do. Keep up the good work :)
-
View User Profile
-
Send Message
Posted Feb 17, 2013I need help plz! "/npc create [name] - - trait Sentry" don´t works with citizens2 and "/toggle Sentry" doesnt work, too! What I´m doing wrong ?
-
View User Profile
-
Send Message
Posted Feb 14, 2013@PorlyBe
The would likely have to be solved in citizens at the NPC level. If you set a world or area as no-PVP using any protection plugin, bodyguards will honor that, but not regular sentries. If that helps.
@goakiller900 For what? I have no issues in my server with 1.3.1. There's an upcoming version I'm working on but all that does is add better support for Denizen 0.8
-
View User Profile
-
Send Message
Posted Feb 13, 2013I have sentries set up on my server so players can purchase them but I don't want sentries in certain worlds. Is it possible to limit which worlds the Sentries have access to? If not can I use WorldGuard region flags (or something similar) to prevent NPC access to certain areas? or is there another solution to my dilemma.