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 23, 2013For those who are interested:
the problem with the wiki lies in the fact that the IP address was changed but the person who has the authority to update the DNS hasn't been on to fix it. As such, it's not been working. This came from the Citizens2 IRC chat people.
-
View User Profile
-
Send Message
Posted Apr 23, 2013@jrbudda
Is it a stable version?
-
View User Profile
-
Send Message
Posted Apr 22, 2013@squizzer16 @paolo44 That error comes from using Sentry for 1.4.7 on craftbukkit 1.5.1
-
View User Profile
-
Send Message
Posted Apr 22, 2013I keep on geting the same problem as squizzer16
-
View User Profile
-
Send Message
Posted Apr 22, 2013Not sure why the wiki is down, I've submitted a compatible build for 1.5.1 to bukkit, so hold tight.
-
View User Profile
-
Send Message
Posted Apr 21, 2013Please update =(
-
View User Profile
-
Send Message
Posted Apr 21, 2013Hello i have a problem with this plugin and i hope you can help me... when i type /trait sentry says : java.lang.NoClassDefFoundError:net/minecraft/server/v1_4_R1/Packet ... when you see that plss respond me if you have a solution.
-
View User Profile
-
Send Message
Posted Apr 20, 2013http://www.sendspace.com/file/4en9is
not working on wiki
-
View User Profile
-
Send Message
Posted Apr 20, 2013jrbudda update to 1.5.1
-
View User Profile
-
Send Message
Posted Apr 20, 2013@marquillos12
I'm having the same problem on 1.5.1. @jrbudda, do you know if it's being updated soon?
-
View User Profile
-
Send Message
Posted Apr 19, 2013can you update it for 1.5.1 plz
-
View User Profile
-
Send Message
Posted Apr 18, 2013Whenever i try to trait a npc and do "/trait sentry" this is what happens: 2013-04-18 15:39:33 [INFO] marquillos12 issued server command: /trait sentry 2013-04-18 15:39:33 [SEVERE] java.lang.NoClassDefFoundError: net/minecraft/server/v1_4_R1/Packet 2013-04-18 15:39:33 [SEVERE] at net.aufdemrand.sentry.SentryTrait.ensureInst(SentryTrait.java:132) 2013-04-18 15:39:33 [SEVERE] at net.aufdemrand.sentry.SentryTrait.onSpawn(SentryTrait.java:111) 2013-04-18 15:39:33 [SEVERE] at net.citizensnpcs.api.npc.AbstractNPC.addTrait(AbstractNPC.java:64) 2013-04-18 15:39:33 [SEVERE] at net.citizensnpcs.api.npc.AbstractNPC.addTrait(AbstractNPC.java:44) 2013-04-18 15:39:33 [SEVERE] at net.citizensnpcs.commands.TraitCommands.toggle(TraitCommands.java:141) 2013-04-18 15:39:33 [SEVERE] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-04-18 15:39:33 [SEVERE] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-04-18 15:39:33 [SEVERE] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-04-18 15:39:33 [SEVERE] at java.lang.reflect.Method.invoke(Unknown Source) 2013-04-18 15:39:33 [SEVERE] at net.citizensnpcs.api.command.CommandManager.executeMethod(CommandManager.java:132) 2013-04-18 15:39:33 [SEVERE] at net.citizensnpcs.api.command.CommandManager.execute(CommandManager.java:87) 2013-04-18 15:39:33 [SEVERE] at net.citizensnpcs.api.command.CommandManager.executeSafe(CommandManager.java:156) 2013-04-18 15:39:33 [SEVERE] at net.citizensnpcs.Citizens.onCommand(Citizens.java:215) 2013-04-18 15:39:33 [SEVERE] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) 2013-04-18 15:39:33 [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:189) 2013-04-18 15:39:33 [SEVERE] at org.bukkit.craftbukkit.v1_5_R2.CraftServer.dispatchCommand(CraftServer.java:523) 2013-04-18 15:39:33 [SEVERE] at net.minecraft.server.v1_5_R2.PlayerConnection.handleCommand(PlayerConnection.java:966) 2013-04-18 15:39:33 [SEVERE] at net.minecraft.server.v1_5_R2.PlayerConnection.chat(PlayerConnection.java:884) 2013-04-18 15:39:33 [SEVERE] at net.minecraft.server.v1_5_R2.PlayerConnection.a(PlayerConnection.java:841) 2013-04-18 15:39:33 [SEVERE] at net.minecraft.server.v1_5_R2.Packet3Chat.handle(Packet3Chat.java:44) 2013-04-18 15:39:33 [SEVERE] at net.minecraft.server.v1_5_R2.NetworkManager.b(NetworkManager.java:292) 2013-04-18 15:39:33 [SEVERE] at net.minecraft.server.v1_5_R2.PlayerConnection.d(PlayerConnection.java:110) 2013-04-18 15:39:33 [SEVERE] at net.minecraft.server.v1_5_R2.ServerConnection.b(SourceFile:35) 2013-04-18 15:39:33 [SEVERE] at net.minecraft.server.v1_5_R2.DedicatedServerConnection.b(SourceFile:30) 2013-04-18 15:39:33 [SEVERE] at net.minecraft.server.v1_5_R2.MinecraftServer.r(MinecraftServer.java:580) 2013-04-18 15:39:33 [SEVERE] at net.minecraft.server.v1_5_R2.DedicatedServer.r(DedicatedServer.java:225) 2013-04-18 15:39:33 [SEVERE] at net.minecraft.server.v1_5_R2.MinecraftServer.q(MinecraftServer.java:476) 2013-04-18 15:39:33 [SEVERE] at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:409) 2013-04-18 15:39:33 [SEVERE] at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573) 2013-04-18 15:39:33 [SEVERE] Caused by: java.lang.ClassNotFoundException: net.minecraft.server.v1_4_R1.Packet 2013-04-18 15:39:33 [SEVERE] at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:70) 2013-04-18 15:39:33 [SEVERE] at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53) 2013-04-18 15:39:33 [SEVERE] at java.lang.ClassLoader.loadClass(Unknown Source) 2013-04-18 15:39:33 [SEVERE] at java.lang.ClassLoader.loadClass(Unknown Source) 2013-04-18 15:39:33 [SEVERE] ... 29 more
Please Help this plugins looks awesome ;) :D
-
View User Profile
-
Send Message
Posted Apr 15, 2013@agentwolf44
Ok, apparently anticheat and sentry conflict Any solutions plz? Does nocheat also conlfict with sentry? can i change the sentry settings?
-
View User Profile
-
Send Message
Posted Apr 15, 2013@agentwolf44
I get error messages suddenly when a guard attacks something Help plz? I really want to keep the sentries Any plugins that conflict with sentry?
-
View User Profile
-
Send Message
Posted Apr 15, 2013@jrbudda
When I turn off retaliation, doesnt that stop them from attacking players that normally hit them? (without being on the ignore list)
-
View User Profile
-
Send Message
Posted Apr 15, 2013@agentwolf44
@agentwolf44
Turn retaliation off.
@Coffeebuzz77
I have no idea, maybe something can be done via spout?
-
View User Profile
-
Send Message
Posted Apr 12, 2013Is there a built in way to show a sentries health as players fight it.. I have dungeon bosses with very large amounts of health for long boss fights.. it would be nice to have way to indicate to the player how close they are to victory as they fight. edit: i have tried mob health plugins that show health in various ways but sentries are not treated as mobs and so these plugins have not worked.
-
View User Profile
-
Send Message
Posted Apr 10, 2013Does anyone know how to script it so that a sentry doesnt attack people on the ignore list? (even if hit) because thats a big problem on my server, that when i attack another player because im one of the guards, then the sentries attack me instead! anyone know how to change it so that sentries dont go for ignore players?
-
View User Profile
-
Send Message
Posted Apr 10, 2013@malaxan
get v1.3.3.3 on the wiki
@broluigi
You could use Denizen to script the creation of npcs, or use a macro plugin like commandbook to create an alias for those commands.
-
View User Profile
-
Send Message
Posted Apr 9, 2013I want to make it so players that get certain permissions can do certain things like this
(Not have to use the /npc create and /trait sentry and /sentry guard.. its tedious to players
/guard create (name) (Creates a sentry guard that automatically bodyguards the player and teleports to him if its too far away
/npc equip (allows the player to let it equip)
/npc remove (removes the guard)
that is all i need for it to have - what can i do to give just these permissions to a player? and where can i find them?