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.
@SwahgnerDK
Which version should i download?? My server runs 1.8.
Don't work correctly
I ues /trait sentry
If i do /npc create Town Guard --trait sentry does it set a npc named town guard but it comes with an error and it ses:
[07:57:19 WARN]: java.lang.NoClassDefFoundError: net/minecraft/server/v1_7_R1/World
[07:57:19 WARN]: at net.aufdemrand.sentry.SentryTrait.ensureInst(SentryTrait.java:132)
[07:57:19 WARN]: at net.aufdemrand.sentry.SentryTrait.onSpawn(SentryTrait.java:114)
[07:57:19 WARN]: at net.citizensnpcs.api.npc.AbstractNPC.addTrait(AbstractNPC.java:109)
[07:57:19 WARN]: at net.citizensnpcs.commands.NPCCommands.create(NPCCommands.java:385)
[07:57:19 WARN]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[07:57:19 WARN]: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[07:57:19 WARN]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[07:57:19 WARN]: at java.lang.reflect.Method.invoke(Unknown Source)
[07:57:19 WARN]: at net.citizensnpcs.api.command.CommandManager.executeMethod(CommandManager.java:152)
[07:57:19 WARN]: at net.citizensnpcs.api.command.CommandManager.execute(CommandManager.java:87)
[07:57:19 WARN]: at net.citizensnpcs.api.command.CommandManager.executeSafe(CommandManager.java:175)
[07:57:19 WARN]: at net.citizensnpcs.Citizens.onCommand(Citizens.java:238)
[07:57:19 WARN]: at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
[07:57:19 WARN]: at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141)
[07:57:19 WARN]: at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:640)
[07:57:19 WARN]: at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162)
[07:57:19 WARN]: at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997)
[07:57:19 WARN]: at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45)
[07:57:19 WARN]: at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1)
[07:57:19 WARN]: at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13)
[07:57:19 WARN]: at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
[07:57:19 WARN]: at java.util.concurrent.FutureTask.run(Unknown Source)
[07:57:19 WARN]: at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44)
[07:57:19 WARN]: at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:714)
[07:57:19 WARN]: at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374)
[07:57:19 WARN]: at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:653)
[07:57:19 WARN]: at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:556)
[07:57:19 WARN]: at java.lang.Thread.run(Unknown Source)
[07:57:19 WARN]: Caused by: java.lang.ClassNotFoundException: net.minecraft.server.v1_7_R1.World
[07:57:19 WARN]: at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:91)
[07:57:19 WARN]: at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86)
[07:57:19 WARN]: at java.lang.ClassLoader.loadClass(Unknown Source)
[07:57:19 WARN]: at java.lang.ClassLoader.loadClass(Unknown Source)
[07:57:19 WARN]: ... 28 more
PS my server is on 1.8.8 and citizens 2.0.16-SNAPSHOT (build 1267) 1.8.1 and sentry 1.8.0 1.7.2
Please help
i have an error with /trait sentry my version of citizens is 2.0.16 and i have sentry 1.8.8 jenkins please help
Update to 1.8 please
@UltiMCDK I had this as well, but in jenkins I surfed the site for the update closest to my game version and it fixed it.
Please Help
Issue
Whenever the npc tries to attack someone it seems like the npc's pathfinding only updates every 4th or 5th second. Which makes it very easy to escape from.
Npc creation
/npc create KillBot_ /trait sentry /sentry target add event:pvp + some extra stuff added such as health, strength etc.
Versions
Spigot 1-8-8 Sentry (for MC 1.8) Citizens 2 (for MC 1.8)
==== I hope that someone can help ====
When i type /trait sentry, and i have and NPC selected, i got this message: "Please report this error: [See console] java.lang.NoClassDefFoundError: net/minecraft/server/v1_7_R3/World" Plz help me.
Can you pleeeeaaase update this to 1.8.8? :):):):):)
@ProtoTypeEU
Update to more modern versions, that was a bug in older ones.
Also, if you use 1.9.2, consider replacing Sentry with Sentinel: http://dev.bukkit.org/bukkit-plugins/sentinel/ (Note: Not advertising... I'm the present maintainer of Sentry as appointed by the Citizens team, and I chose to drop the project in favor of the replacement, Sentinel)
Hi, nice job, this plugin is just awesome, but i have one problem with it.
When i kill some sentry even if i write /sentry drops or /sentry killdrops and in each one says "Sentry will not drop items or exp", it does, any fix for it? Thank you very much
@itzshaun343
Npcs can attack each other, use NPC:<Npc name> But @itzshaun343 the only weapon they can really use to shoot is a bow. Plus the AI wouldn't be as good. They won't move up to the guy to attack if the sentry holds a gun. They won't follow the guy to continue shooting him. They will shoot while holding the item when they are walking, making it seem like aimbot or something. Adding guns would be amazing.
@123123b you need to make a texture pack with a gun in and make it hold the item you retextured
can they attack eachother
Hey, here is a suggestion @jrbudda:
Npcs holding and using guns. For my server I want my npcs to use guns, is this possible with the sentry plugin?
Hello , when I made the / sentry line it writes : java.lang.noClassDeffoundError: Could not initialize class net.citizensnpcs.npc.EntityControllers
Please Help me or fix that
Cordially
@mcmonkey4eva
Where can I find sentinel permissions? I use atm sentry which has started to glitch (error: http://pastebin.com/T5vLgnhm)
VIP ranked players have access to /npc list and /npc select commands from Citizens and /sentry guard command from Sentry plugin. Unfortunately right now sentry is out dated and I don't find Sentinel plugin permissions anywhere. Would do this same with Sentinel command; /sentinel guard so they can stop the NPC or make it follow again.
@theangeldemqn
http://ci.citizensnpcs.co/job/Sentry/ but also check out our replacement project, Sentinel. You can inquire about that on IRC @ http://webchat.esper.net/?channels=citizens
@mcmonkey4eva
where do i get this sentry for 1.9
@Herzegov
http://wiki.citizensnpcs.co/Sentry#Updates