Sentry for Citizens2

Sentry for Citizens2
Sentryhttp://wiki.citizensnpcs.co/images/1/1b/Wordmark.png

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

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.

http://wiki.citizensnpcs.co/images/thumb/f/fd/KnightSentry.png/800px-KnightSentry.png

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of Ajaxan Ajaxan Aug 07, 2014 at 05:24 UTC - 0 likes

    I've found that I can't set npc health above 20. I use the normal command, (/sentry health #) but no matter what they die after taking 20 damage. Is this just the way it is or is there something I'm missing?

    Back to work!

  • Avatar of mcmonkey4eva mcmonkey4eva Aug 07, 2014 at 00:56 UTC - 0 likes

    @FrancoEsFeliz: Go

    They only walk to points within their pathrange (/npc pathrange) defaulting to 25. If you want to avoid teleportation, move waypoints closer together.

  • Avatar of FrancoEsFeliz FrancoEsFeliz Aug 06, 2014 at 23:24 UTC - 0 likes

    I have a problem. When i spawn a npc, he teleports to the next waypoint. How do I make he walk?

  • Avatar of omermarvel omermarvel Aug 06, 2014 at 15:52 UTC - 0 likes

    @jrbudda: Go

    help me 1.7.9 my server but does not work

  • Avatar of hackercore hackercore Aug 04, 2014 at 23:54 UTC - 0 likes

    Is there any way for a Sentry not to deal or take damage in Worldguard pvp-protected regions?

  • Avatar of mcmonkey4eva mcmonkey4eva Aug 04, 2014 at 22:14 UTC - 0 likes

    @CoconutJJ: Go

    Wrong Sentry version for 1.6.4 -> http://wiki.citizensnpcs.co/Sentry#Updates get sentry v1.5.3 or 1.5.4

    Last edited Aug 04, 2014 by mcmonkey4eva
  • Avatar of CoconutJJ CoconutJJ Aug 04, 2014 at 14:44 UTC - 0 likes

    I got this error while enabling sentry on my server for 1.6.4: 7:40:42 AM [SEVERE] java.lang.NoClassDefFoundError: net/minecraft/server/v1_6_R2/Packet 7:40:42 AM [SEVERE] at net.aufdemrand.sentry.SentryTrait.ensureInst(SentryTrait.java:133) 7:40:42 AM [SEVERE] at net.aufdemrand.sentry.SentryTrait.onSpawn(SentryTrait.java:115) 7:40:42 AM [SEVERE] at net.citizensnpcs.api.npc.AbstractNPC.addTrait(AbstractNPC.java:108) 7:40:42 AM [SEVERE] at net.citizensnpcs.api.npc.AbstractNPC.addTrait(AbstractNPC.java:87) 7:40:42 AM [SEVERE] at net.citizensnpcs.commands.TraitCommands.addTrait(TraitCommands.java:59) 7:40:42 AM [SEVERE] at net.citizensnpcs.commands.TraitCommands.toggle(TraitCommands.java:152) 7:40:42 AM [SEVERE] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 7:40:42 AM [SEVERE] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 7:40:42 AM [SEVERE] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 7:40:42 AM [SEVERE] at java.lang.reflect.Method.invoke(Unknown Source) 7:40:42 AM [SEVERE] at net.citizensnpcs.api.command.CommandManager.executeMethod(CommandManager.java:153) 7:40:42 AM [SEVERE] at net.citizensnpcs.api.command.CommandManager.execute(CommandManager.java:90) 7:40:42 AM [SEVERE] at net.citizensnpcs.api.command.CommandManager.executeSafe(CommandManager.java:177) 7:40:42 AM [SEVERE] at net.citizensnpcs.Citizens.onCommand(Citizens.java:214) 7:40:42 AM [SEVERE] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) 7:40:42 AM [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:192) 7:40:42 AM [SEVERE] at org.bukkit.craftbukkit.v1_6_R3.CraftServer.dispatchCommand(CraftServer.java:528) 7:40:42 AM [SEVERE] at net.minecraft.server.v1_6_R3.PlayerConnection.handleCommand(PlayerConnection.java:968) 7:40:42 AM [SEVERE] at net.minecraft.server.v1_6_R3.PlayerConnection.chat(PlayerConnection.java:886) 7:40:42 AM [SEVERE] at net.minecraft.server.v1_6_R3.PlayerConnection.a(PlayerConnection.java:837) 7:40:42 AM [SEVERE] at net.minecraft.server.v1_6_R3.Packet3Chat.handle(SourceFile:49) 7:40:42 AM [SEVERE] at net.minecraft.server.v1_6_R3.NetworkManager.b(NetworkManager.java:296) 7:40:42 AM [SEVERE] at net.minecraft.server.v1_6_R3.PlayerConnection.e(PlayerConnection.java:116) 7:40:42 AM [SEVERE] at net.minecraft.server.v1_6_R3.ServerConnection.b(SourceFile:37) 7:40:42 AM [SEVERE] at net.minecraft.server.v1_6_R3.DedicatedServerConnection.b(SourceFile:30) 7:40:42 AM [SEVERE] at net.minecraft.server.v1_6_R3.MinecraftServer.t(MinecraftServer.java:592) 7:40:42 AM [SEVERE] at net.minecraft.server.v1_6_R3.DedicatedServer.t(DedicatedServer.java:227) 7:40:42 AM [SEVERE] at net.minecraft.server.v1_6_R3.MinecraftServer.s(MinecraftServer.java:488) 7:40:42 AM [SEVERE] at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:421) 7:40:42 AM [SEVERE] at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583) 7:40:42 AM [SEVERE] Caused by: java.lang.ClassNotFoundException: net.minecraft.server.v1_6_R2.Packet 7:40:42 AM [SEVERE] at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:70) 7:40:42 AM [SEVERE] at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53) 7:40:42 AM [SEVERE] at java.lang.ClassLoader.loadClass(Unknown Source) 7:40:42 AM [SEVERE] at java.lang.ClassLoader.loadClass(Unknown Source) 7:40:42 AM [SEVERE] ... 30 more

  • Avatar of Proxwian Proxwian Aug 01, 2014 at 14:53 UTC - 0 likes

    Help! Sentry npc permanently respawn after die and i can't change respawn delay with "/sentry respawn" or "/npc respawn". It's a big trouble for me

  • Avatar of mcmonkey4eva mcmonkey4eva Jul 29, 2014 at 04:51 UTC - 0 likes

    @Mexbotdude: Go

    Update: It's been fixed in the /new/ latest Citizens build (I just spoke with the developer of C2 and he pushed a fix)

    EDIT: He fixed the error behind the issue at least. The error message may still show, but it's /definitely/ safe to ignore now.

    Last edited Jul 29, 2014 by mcmonkey4eva
  • Avatar of mcmonkey4eva mcmonkey4eva Jul 28, 2014 at 22:20 UTC - 0 likes

    @Mexbotdude: Go

    You can probably just ignore it for now - it shouldn't harm anything.

Your favorite Brigade?

  1. Choice:

  1. Results
  2. 0 comments

Facts

Date created
Sep 11, 2012
Categories
Last update
Jun 03, 2014
Development stage
Release
Language
  • enUS
License
Public Domain
Curse link
Sentry for Citizens2
Downloads
117,480
Recent files

Authors