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.
Woud McMMO compability be possible?
Also, It seems like Group targeting NPCs are broke. Atleast for me.
@rossyell
If you are getting the AbstractMethod Error, you are using the wrong build of citizens 2.0.1. I 100% guarantee it. Maybe you have have 2 jars in the plugins folder?
@rossyell
It should be in /plugins/Sentry if you are using 0.9.8.1
@jrbudda
It was the latest - but have downloaded again anyway. It still eventually crashes the server.if there is an obstruction. Seems to be a Java "give up stuck" action.
By the way - I reckon this is one of the best mods I have come across so far. I hope you guys keep up the energy.
@tarkus80
Bodyguards and world-changing is a known issue. We're working on it.
@jrbudda
if you have a look to http://dev.bukkit.org/server-mods/shopkeepers/ it seems to be possible to modify the skin without spout in a restricted way
if i create one sentry in one world and set it to /sentry guard player... the sentry guards only in this world, if I teleport to another world, the sentry does not follow me by walking, it teleports and dont attack any attacker
@tarkus80
Skinning is a complicated issue. See here http://wiki.citizensnpcs.com/Skins
You can equip armor on a sentry with /npc equip
@jrbudda
oh :) i will give it a try
is it also possible to add some visible skinning to the sentry? if i create one it is still the default skin. and:
if i create one sentry in one world and set it to /sentry guard player... the sentry guards only in this world, if I teleport to another world, the sentry does not follow me by walking, it teleports and dont attack any attacker
@tarkus80
0.9.8 is still waiting on approval here, you can get it on the wiki.
@jrbudda
no configs will be created with latest version
@rossyell
that doesn't show the build number, download a build specifically from http://ci.citizensnpcs.com/job/Citizens2/
@jrbudda
I thought i was - have relooked at it - the versions pasted in below. it is hanging frequently - and is a pain as need to edit the save file otherwise cant get in and delete the sentries before it crashes again.
[INFO] This server is running CraftBukkit version git-Bukkit-1.3.2-R0.1-12-ga6af49c-b2365jnks (MC: 1.3.2) (Implementing API version 1.3.2-R0.2-SNAPSHOT)
22:06:58 [INFO] [Ships] Loading Ships v2.0.1
22:06:58 [INFO] [bPermissionsWebGUI] Loading bPermissionsWebGUI v2.0
22:06:58 [INFO] [bPermissions] Loading bPermissions v2.9.21
22:06:58 [INFO] [MineConomy] Loading MineConomy v1.5
22:06:58 [INFO] [PerformanceMonitor] Loading PerformanceMonitor v1.6.5
22:06:58 [INFO] [WorldEdit] Loading WorldEdit v5.4.2
22:06:58 [INFO] [NoSwear] Loading NoSwear v5.1
22:06:58 [INFO] [CommandBook] Loading CommandBook v521-465596a
22:06:58 [INFO] [Backup] Loading Backup v2.1-dev
22:06:58 [INFO] [Vault] Loading Vault v1.2.18-b229
22:06:58 [INFO] [FirstJoinPlus] Loading FirstJoinPlus v1.4.2
22:06:58 [INFO] [WorldGuard] Loading WorldGuard v643-19be2bf
22:06:58 [INFO] [dynmap] Loading dynmap v0.80-1315
22:06:58 [INFO] [Dynmap-WorldGuard] Loading Dynmap-WorldGuard v0.30
22:06:58 [INFO] [Citizens] Loading Citizens v2.0.1
22:06:58 [INFO] [TreasureHunt] Loading TreasureHunt v0.10.2
22:06:58 [INFO] [OnTime] Loading OnTime v3.2.3
22:06:58 [INFO] [Sentry] Loading Sentry v0.9.7
22:06:58 [INFO] [Dynmap-CommandBook] Loading Dynmap-CommandBook v0.30
22:06:58 [INFO] [JSONAPI] Loading JSONAPI v3.9.9
22:06:58 [INFO] [Monster Apocalypse] Loading Monster Apocalypse v<0.0.1>
@rossyell
You need the latest dev build of Citizens2, as it says in the installation instructions and Known Caveats
Severe server erros
I love this plugin - happy to remove most of my other stuff if anything conflicts. What else do you need ? Am running bukkitdev - latest
[SEVERE] java.lang.AbstractMethodError net.aufdemrand.sentry.GiveUpStu ckAction.run(Lnet/citizensnpcs/api/npc/NPC;Lnet/citizensnpcs/api/ai/Navigator;)V
18:54:42 [SEVERE] at net.citizensnpcs.npc.ai.CitizensNavigator.stopNavigating(CitizensNavigator.java:145)
18:54:42 [SEVERE] at net.citizensnpcs.npc.ai.CitizensNavigator.updateStati
18:54:42 [SEVERE] at net.citizensnpcs.npc.ai.CitizensNavigator.update(Citi zensNavigator.java:160
18:54:42 [SEVERE] at net.citizensnpcs.npc.CitizensNPC.update(CitizensNPC.j ava:163)
18:54:42 [SEVERE] at net.citizensnpcs.npc.entity.CitizensHumanNPC.update(C itizensHumanNPC.java:138
18:54:42 [SEVERE] at net.citizensnpcs.npc.entity.EntityHumanNPC.h_(EntityH umanNPC.java:85
18:54:42 [SEVERE] at net.minecraft.server.World.entityJoinedWorld(World.ja va:1245)
18:54:42 [SEVERE] at net.minecraft.server.WorldServer.entityJoinedWorld(Wo rldServer.java:511
18:54:42 [SEVERE] at net.minecraft.server.World.playerJoinedWorld(World.ja va:1227)
18:54:42 [SEVERE] at net.minecraft.server.World.tickEntities(World.java:11 25)
18:54:42 [SEVERE] at net.minecraft.server.WorldServer.tickEntities(WorldSe rver.java:428
18:54:42 [SEVERE] at net.minecraft.server.MinecraftServer.q(MinecraftServe r.java:563)
18:54:42 [SEVERE] at net.minecraft.server.DedicatedServer.q(DedicatedServe r.java:213)
18:54:42 [SEVERE] at net.minecraft.server.MinecraftServer.p(MinecraftServe r.java:473)
18:54:42 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftSer ver.java:405
18:54:42 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(Sour ceFile:539)
18:54:42 [SEVERE] Encountered an unexpected exception AbstractMethodError
java.lang.AbstractMethodError net.aufdemrand.sentry.GiveUpStuckAction.run(Lnet/ citizensnpcs/api/npc/NPC;Lnet/citizensnpcs/api/ai/Navigator;)V
at net.citizensnpcs.npc.ai.CitizensNavigator.stopNavigating(CitizensNavi gator.java:145
at net.citizensnpcs.npc.ai.CitizensNavigator.updateStationaryStatus(Citi zensNavigator.java:183
at net.citizensnpcs.npc.ai.CitizensNavigator.update(CitizensNavigator.ja va:160)
at net.citizensnpcs.npc.CitizensNPC.update(CitizensNPC.java:163)
at net.citizensnpcs.npc.entity.CitizensHumanNPC.update(CitizensHumanNPC. java:138)
at net.citizensnpcs.npc.entity.EntityHumanNPC.h_(EntityHumanNPC.java:85)
at net.minecraft.server.World.entityJoinedWorld(World.java:1245)
at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:5 11)
at net.minecraft.server.World.playerJoinedWorld(World.java:1227)
at net.minecraft.server.World.tickEntities(World.java:1125)
at net.minecraft.server.WorldServer.tickEntities(WorldServer.java:428)
at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:563)
at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:213)
at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:473)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:405)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
18:54:42 [SEVERE] This crash report has been saved to: /craftbukkit/./crash-repo rts/crash-2012-09-14_18.54.42-server.txt
>
18:54:42 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:405)
18:54:42 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
18:54:42 [SEVERE] Encountered an unexpected exception AbstractMethodError
java.lang.AbstractMethodError net.aufdemrand.sentry.GiveUpStuckAction.run(Lnet/citizensnpcs/api/npc/NPC;Lnet/citizensnpcs/api/ai/Navigator;)V
at net.citizensnpcs.npc.ai.CitizensNavigator.stopNavigating(CitizensNavigator.java:145)
at net.citizensnpcs.npc.ai.CitizensNavigator.updateStationaryStatus(CitizensNavigator.java:183)
at net.citizensnpcs.npc.ai.CitizensNavigator.update(CitizensNavigator.java:160)
at net.citizensnpcs.npc.CitizensNPC.update(CitizensNPC.java:163)
at net.citizensnpcs.npc.entity.CitizensHumanNPC.update(CitizensHumanNPC.java:138)
at net.citizensnpcs.npc.entity.EntityHumanNPC.h_(EntityHumanNPC.java:85)
at net.minecraft.server.World.entityJoinedWorld(World.java:1245)
at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:511)
at net.minecraft.server.World.playerJoinedWorld(World.java:1227)
at net.minecraft.server.World.tickEntities(World.java:1125)
at net.minecraft.server.WorldServer.tickEntities(WorldServer.java:428)
at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:563)
at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:213)
at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:473)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:405)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
18:54:42 [SEVERE] This crash report has been saved to: /craftbukkit/./crash-reports/crash-2012-09-14_18.54.42-server.txt
@watdidyusaey Citizens2 does not come with any characters built in.
I thought sentries were already build into citizens 2 by default?