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.
pls update to 1.12
Habría alguna posibilidad de que actualizaras el plugin a la 1.12? Por favor lo necesito
pls anyone help me
i have this error
[11:50:10 WARN]: java.lang.NoClassDefFoundError: net/minecraft/server/v1_7_R3/World [11:50:10 WARN]: at net.aufdemrand.sentry.SentryTrait.ensureInst(SentryTrait.java:134) [11:50:10 WARN]: at net.aufdemrand.sentry.SentryTrait.onSpawn(SentryTrait.java:116) [11:50:10 WARN]: at net.citizensnpcs.api.npc.AbstractNPC.addTrait(AbstractNPC.java:110) [11:50:10 WARN]: at net.citizensnpcs.commands.NPCCommands.create(NPCCommands.java:463) [11:50:10 WARN]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [11:50:10 WARN]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [11:50:10 WARN]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [11:50:10 WARN]: at java.lang.reflect.Method.invoke(Method.java:498) [11:50:10 WARN]: at net.citizensnpcs.api.command.CommandManager.executeMethod(CommandManager.java:152) [11:50:10 WARN]: at net.citizensnpcs.api.command.CommandManager.execute(CommandManager.java:87) [11:50:10 WARN]: at net.citizensnpcs.api.command.CommandManager.executeSafe(CommandManager.java:175) [11:50:10 WARN]: at net.citizensnpcs.Citizens.onCommand(Citizens.java:237) [11:50:10 WARN]: at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [11:50:10 WARN]: at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:140) [11:50:10 WARN]: at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:629) [11:50:10 WARN]: at net.minecraft.server.v1_12_R1.PlayerConnection.handleCommand(PlayerConnection.java:1338) [11:50:10 WARN]: at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1198) [11:50:10 WARN]: at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(SourceFile:37) [11:50:10 WARN]: at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(SourceFile:9) [11:50:10 WARN]: at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13) [11:50:10 WARN]: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [11:50:10 WARN]: at java.util.concurrent.FutureTask.run(FutureTask.java:266) [11:50:10 WARN]: at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) [11:50:10 WARN]: at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:696) [11:50:10 WARN]: at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:371) [11:50:10 WARN]: at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:651) [11:50:10 WARN]: at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:555) [11:50:10 WARN]: at java.lang.Thread.run(Thread.java:745) [11:50:10 WARN]: Caused by: java.lang.ClassNotFoundException: net.minecraft.server.v1_7_R3.World [11:50:10 WARN]: at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:67) [11:50:10 WARN]: at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:62) [11:50:10 WARN]: at java.lang.ClassLoader.loadClass(ClassLoader.java:424) [11:50:10 WARN]: at java.lang.ClassLoader.loadClass(ClassLoader.java:357) [11:50:10 WARN]: ... 28 more
After downloading sentinel and moving Century over to sentinel, everything works perfectly. sentinel is an awesome plugin.
[11:42:05 INFO]: Bankerdief_1 issued server command: /npc create Town Guard --trait sentry [11:42:05 WARN]: java.lang.NoClassDefFoundError: net/minecraft/server/v1_7_R3/World [11:42:05 WARN]: at net.aufdemrand.sentry.SentryTrait.ensureInst(SentryTrait.java:134) [11:42:05 WARN]: at net.aufdemrand.sentry.SentryTrait.onSpawn(SentryTrait.java:116) [11:42:05 WARN]: at net.citizensnpcs.api.npc.AbstractNPC.addTrait(AbstractNPC.java:110) [11:42:05 WARN]: at net.citizensnpcs.commands.NPCCommands.create(NPCCommands.java:463) [11:42:05 WARN]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [11:42:05 WARN]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [11:42:05 WARN]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [11:42:05 WARN]: at java.lang.reflect.Method.invoke(Method.java:498) [11:42:05 WARN]: at net.citizensnpcs.api.command.CommandManager.executeMethod(CommandManager.java:152) [11:42:05 WARN]: at net.citizensnpcs.api.command.CommandManager.execute(CommandManager.java:87) [11:42:05 WARN]: at net.citizensnpcs.api.command.CommandManager.executeSafe(CommandManager.java:175) [11:42:05 WARN]: at net.citizensnpcs.Citizens.onCommand(Citizens.java:237) [11:42:05 WARN]: at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [11:42:05 WARN]: at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [11:42:05 WARN]: at org.bukkit.craftbukkit.v1_11_R1.CraftServer.dispatchCommand(CraftServer.java:650) [11:42:05 WARN]: at net.minecraft.server.v1_11_R1.PlayerConnection.handleCommand(PlayerConnection.java:1354) [11:42:05 WARN]: at net.minecraft.server.v1_11_R1.PlayerConnection.a(PlayerConnection.java:1189) [11:42:05 WARN]: at net.minecraft.server.v1_11_R1.PacketPlayInChat.a(PacketPlayInChat.java:45) [11:42:05 WARN]: at net.minecraft.server.v1_11_R1.PacketPlayInChat.a(PacketPlayInChat.java:1) [11:42:05 WARN]: at net.minecraft.server.v1_11_R1.PlayerConnectionUtils$1.run(SourceFile:13) [11:42:05 WARN]: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [11:42:05 WARN]: at java.util.concurrent.FutureTask.run(FutureTask.java:266) [11:42:05 WARN]: at net.minecraft.server.v1_11_R1.SystemUtils.a(SourceFile:46) [11:42:05 WARN]: at net.minecraft.server.v1_11_R1.MinecraftServer.D(MinecraftServer.java:747) [11:42:05 WARN]: at net.minecraft.server.v1_11_R1.DedicatedServer.D(DedicatedServer.java:399) [11:42:05 WARN]: at net.minecraft.server.v1_11_R1.MinecraftServer.C(MinecraftServer.java:678) [11:42:05 WARN]: at net.minecraft.server.v1_11_R1.MinecraftServer.run(MinecraftServer.java:576) [11:42:05 WARN]: at java.lang.Thread.run(Thread.java:745) [11:42:05 WARN]: Caused by: java.lang.ClassNotFoundException: net.minecraft.server.v1_7_R3.World [11:42:05 WARN]: at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:91) [11:42:05 WARN]: at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) [11:42:05 WARN]: at java.lang.ClassLoader.loadClass(ClassLoader.java:424) [11:42:05 WARN]: at java.lang.ClassLoader.loadClass(ClassLoader.java:357) [11:42:05 WARN]: ... 28 more
In reply to Bankerdief_1:
@TitanKingX
Sentinel actually features a command to import old Sentry data...
The project is over and will not be update anymore, the message can be found here https://wiki.citizensnpcs.co/Sentry. The plugin to replace it is not backwards compatible with npcs who are sentrys. Its called Sentinel, information here: https://github.com/mcmonkey4eva/Sentinel/blob/master/README.md
Its left me in a bad spot , I have a quest server that has 53 sentry, that are different!
Plugin does not work for 1.8 and newer Spigot and CraftBukkit versions!
I'd like to have this plugin but you do not have it for 1.10+
WARNING! Need this plugin version 1.10+ plz! Thx.
@mcmonkey4eva
Awesome thanks for the info!!
@Everyone this project has been replaced: https://github.com/mcmonkey4eva/Sentinel/blob/master/README.md - this replacement is done by the CitizensNPCs team and is considered an "official" replacement.
Just wondering what the most recent version the dev build is compatible with?
Sentry works great, but the wiki is sooooooooooooooo slow/glitchy. Please put up a mirror site or something. Just a list of commands on this page would be a massive help.
Please update for 1.8.8, because Jekins version doesn't work + I think the author is afk for good, its not even necessary to keep posting comments here , he won't reply. This build my get deleted if the author keeps being inactive the whole time.
when i use sentry or builder on my server there is error
@mcmonkey4eva
O god yes! Thank you so much :) keep up the good work!! Gonne check it out right now!
@robinpowder
Sentry has been replaced by Sentinel under the same author.
https://github.com/mcmonkey4eva/Sentinel/blob/master/README.md
I AM BEGGING YOU TO UPDATE THIS TO 1.10, I KNOW IT MIGHT BE HARD WORK BUT THIS PLUGIN IS 50% OF WHAT MAKES THE BEST PLUGIN EVER MADE FOR MINECRAFT ALL OVER THE WORLD.
Please keep working on this :] !
Are you planning on updating it in the future? I never donated before that's how much of a prick I am but if you keep this thing running I will.
Kind regards. Robin.