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 Oct 10, 2013Hey quick question. Since you made this plugin, could you possibly create a citizens skin editor plugin where we can add custom skins with custom names and then call up those names when we create a citizen? if there is already a plugin that does this could you please direct me to it? Thanks a bunch!
-
View User Profile
-
Send Message
Posted Oct 9, 2013Hi, i have a error console:
java.lang.noclass.noclassdefound.error net/minecraft/server/v_1:6_r2/packer
-
View User Profile
-
Send Message
Posted Oct 5, 2013@ED193728
yeah the same thing happens to me and its been doing that since i updated to 1.6.4 ... i think it maybe because the 1.6.2 build wont work right with 1.6.4
-
View User Profile
-
Send Message
Posted Oct 4, 2013Hey love the plugin, but i was just wandering how to make the npc's start with their full health once they respawn? What i mean is that i make an npc that has 100 health, once he dies and responds he is back at 20 and then either doesn't regen if i don't set it to or regens slowly, is there a way to just make it start with X amount of health right when it respawns?
-
View User Profile
-
Send Message
Posted Oct 4, 2013@ED193728
that means that sentry is not fully compatible with your version of citizens.
-
View User Profile
-
Send Message
Posted Oct 2, 20132013-10-02 20:33:47 [INFO] ED193728 issued server command: /tr sentry 2013-10-02 20:33:47 [SEVERE] java.lang.NoClassDefFoundError: net/minecraft/serve r/v1_6_R2/Packet 2013-10-02 20:33:47 [SEVERE] at net.aufdemrand.sentry.SentryTrait.ensureInst( SentryTrait.java:133) 2013-10-02 20:33:47 [SEVERE] at net.aufdemrand.sentry.SentryTrait.onSpawn(Sen tryTrait.java:115) 2013-10-02 20:33:47 [SEVERE] at net.citizensnpcs.api.npc.AbstractNPC.addTrait (AbstractNPC.java:108) 2013-10-02 20:33:47 [SEVERE] at net.citizensnpcs.api.npc.AbstractNPC.addTrait (AbstractNPC.java:87) 2013-10-02 20:33:47 [SEVERE] at net.citizensnpcs.commands.TraitCommands.addTr ait(TraitCommands.java:59) 2013-10-02 20:33:47 [SEVERE] at net.citizensnpcs.commands.TraitCommands.toggl e(TraitCommands.java:152) 2013-10-02 20:33:47 [SEVERE] at sun.reflect.NativeMethodAccessorImpl.invoke0( Native Method) 2013-10-02 20:33:47 [SEVERE] at sun.reflect.NativeMethodAccessorImpl.invoke(U nknown Source) 2013-10-02 20:33:47 [SEVERE] at sun.reflect.DelegatingMethodAccessorImpl.invo ke(Unknown Source) 2013-10-02 20:33:47 [SEVERE] at java.lang.reflect.Method.invoke(Unknown Sourc e) 2013-10-02 20:33:47 [SEVERE] at net.citizensnpcs.api.command.CommandManager.e xecuteMethod(CommandManager.java:153) 2013-10-02 20:33:47 [SEVERE] at net.citizensnpcs.api.command.CommandManager.e xecute(CommandManager.java:90) 2013-10-02 20:33:47 [SEVERE] at net.citizensnpcs.api.command.CommandManager.e xecuteSafe(CommandManager.java:177) 2013-10-02 20:33:47 [SEVERE] at net.citizensnpcs.Citizens.onCommand(Citizens. java:214) 2013-10-02 20:33:47 [SEVERE] at org.bukkit.command.PluginCommand.execute(Plug inCommand.java:44) 2013-10-02 20:33:47 [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch( SimpleCommandMap.java:192) 2013-10-02 20:33:47 [SEVERE] at org.bukkit.craftbukkit.v1_6_R3.CraftServer.di spatchCommand(CraftServer.java:523) 2013-10-02 20:33:47 [SEVERE] at net.minecraft.server.v1_6_R3.PlayerConnection .handleCommand(PlayerConnection.java:959) 2013-10-02 20:33:47 [SEVERE] at net.minecraft.server.v1_6_R3.PlayerConnection .chat(PlayerConnection.java:877) 2013-10-02 20:33:47 [SEVERE] at net.minecraft.server.v1_6_R3.PlayerConnection .a(PlayerConnection.java:834) 2013-10-02 20:33:47 [SEVERE] at net.minecraft.server.v1_6_R3.Packet3Chat.hand le(SourceFile:49) 2013-10-02 20:33:47 [SEVERE] at net.minecraft.server.v1_6_R3.NetworkManager.b (NetworkManager.java:296) 2013-10-02 20:33:47 [SEVERE] at net.minecraft.server.v1_6_R3.PlayerConnection .e(PlayerConnection.java:116) 2013-10-02 20:33:47 [SEVERE] at net.minecraft.server.v1_6_R3.ServerConnection .b(SourceFile:37) 2013-10-02 20:33:47 [SEVERE] at net.minecraft.server.v1_6_R3.DedicatedServerC onnection.b(SourceFile:30) 2013-10-02 20:33:47 [SEVERE] at net.minecraft.server.v1_6_R3.MinecraftServer. t(MinecraftServer.java:592) 2013-10-02 20:33:47 [SEVERE] at net.minecraft.server.v1_6_R3.DedicatedServer. t(DedicatedServer.java:227) 2013-10-02 20:33:47 [SEVERE] at net.minecraft.server.v1_6_R3.MinecraftServer. s(MinecraftServer.java:488) 2013-10-02 20:33:47 [SEVERE] at net.minecraft.server.v1_6_R3.MinecraftServer. run(MinecraftServer.java:421) 2013-10-02 20:33:47 [SEVERE] at net.minecraft.server.v1_6_R3.ThreadServerAppl ication.run(SourceFile:583) 2013-10-02 20:33:47 [SEVERE] Caused by: java.lang.ClassNotFoundException: net.mi necraft.server.v1_6_R2.Packet 2013-10-02 20:33:47 [SEVERE] at org.bukkit.plugin.java.PluginClassLoader.find Class0(PluginClassLoader.java:70) 2013-10-02 20:33:47 [SEVERE] at org.bukkit.plugin.java.PluginClassLoader.find Class(PluginClassLoader.java:53) 2013-10-02 20:33:47 [SEVERE] at java.lang.ClassLoader.loadClass(Unknown Sourc e) 2013-10-02 20:33:47 [SEVERE] at java.lang.ClassLoader.loadClass(Unknown Sourc e) 2013-10-02 20:33:47 [SEVERE] ... 30 more
help plz ? that happens when i do /trait sentry
-
View User Profile
-
Send Message
Posted Oct 1, 2013They are not invincible cuz any player can kill them, and I have use /sentry targetable and doesnt works...., Im using the latest build In wiki for 1.6.4
-
View User Profile
-
Send Message
Posted Oct 1, 2013@B3stcraft
make sure you are using the latest build. the command you described /sentry target add entity:monsters is setting the npc to attack monsters, not vice versa. If you want monsters to be able to attack your sentry, type /sentry targetable. This should make a difference. If your Npcs health is infinite, monsters will not attack it. monsters attack my mages all the time :/, and then they call down the lightning to ruin them.
-
View User Profile
-
Send Message
Posted Oct 1, 2013The npc can attack monsters, its target are monsters, but monsters dont atteack my npc!
I have use /sentry target add entity:monsters
-
View User Profile
-
Send Message
Posted Sep 30, 2013@fungreenfox
dont put the space between here
> entity:skeleton-
View User Profile
-
Send Message
Posted Sep 30, 2013@xXxBob
Why dont you check out the Dev version?
-
View User Profile
-
Send Message
Posted Sep 30, 2013@B3stcraft
Have you set anything at its target list? try /sentry target add entity: skeleton and check if it does. Btw. what version are you using?
2nd edition: space removed. try /sentry target add entity:skeleton
-
View User Profile
-
Send Message
Posted Sep 30, 2013Doesnt works, the sentry is still vincible and I dont find anything in help
-
View User Profile
-
Send Message
Posted Sep 30, 2013@B3stcraft
What about /sentry invincible or try typing /sentry help and see for anything relevant.
-
View User Profile
-
Send Message
Posted Sep 30, 2013I have set a sentry npc targetable, but no monster attack it!
-
View User Profile
-
Send Message
Posted Sep 30, 2013There's a 1.6.4 version on the Wiki if you look.
-
View User Profile
-
Send Message
Posted Sep 29, 2013Same as me VenomsCruse, I think it's a question of update... Please update 1.6.4 Thx ;)
-
View User Profile
-
Send Message
Posted Sep 28, 2013error java.lang.NoClassDefFoundError: net/minecraft/server/v1_6_R2/Packet
-
View User Profile
-
Send Message
Posted Sep 28, 2013Nice plugin ! But please, update in 1.6.4. Thx !
-
View User Profile
-
Send Message
Posted Sep 27, 2013can you update to 1.6.4 asap plz because right know my spawn is unprotected and i have to use the presious stones plugin to keep mobs out but people still pvp and the clans dont have there guards and its really crazy and everyones asking me whats wrong with it why wont they attack is there something wrong did i brake them etc plz just update thanks for the time in reading this and hopfully updateing it soon we all love this plugin and appreciate all your work you put into this