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.

Builds for CraftBukkit 1.6+ are on the wiki page!

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 Please use latest build
  • 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.

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 joshworx joshworx Mar 31, 2014 at 06:16 UTC - 0 likes

    Hey, old problem rose up again...

    Sentries can't die, nor can they take or deal damage... Invincibility is disabled and everything, not sure if a plugin is breaking it or not, but I get no errors on the console or anything, so if you could look in to this for me, that would be great. I'm using the 1.7.5 version.

    Thank you.

    - joshworx

    Last edited Mar 31, 2014 by joshworx
  • Avatar of mcmonkey4eva mcmonkey4eva Mar 27, 2014 at 22:27 UTC - 0 likes

    @Matthiasiam: Go

    I assume you mean display name rather than lore... and Sentry doesn't save data in an incredibly complex / useful way... if you want better item handling for that, you'll probably need to set it up through Denizen -> http://wiki.citizensnpcs.co/Denizen

  • Avatar of Matthiasiam Matthiasiam Mar 27, 2014 at 18:03 UTC - 0 likes

    Something strange, If I equip a sentry with an item with Lore. Such as a '&bGuardian_Sword' Then the plugin will work until reload. upon reload Sentries will drop swords that are named '?bGuardian Sword'

    Why are & changing to ? on reload?

    Thanks

  • Avatar of mcmonkey4eva mcmonkey4eva Mar 25, 2014 at 22:49 UTC - 1 like

    @baemboo: Go

    That's ... odd. They're fairly world-nonspecific. Any details on what "dont work" means? Is there an error? Are they acting weird? What exactly is going on?

  • Avatar of baemboo baemboo Mar 25, 2014 at 22:26 UTC - 0 likes

    We got a problem with multiverse worlds. We got no problems in our main world called "world", but sentry and quester npcs dont work in other worlds. help would be nice

  • Avatar of mcmonkey4eva mcmonkey4eva Mar 25, 2014 at 00:16 UTC - 1 like

    @chsedv: Go

    Update on my previous comment, sooner than I expected:

    a 1.7.5 compatible build (Sentry v1.8.1) is available on the wiki at http://wiki.citizensnpcs.co/Sentry and as build #8 on the Citizens development repo http://ci.citizensnpcs.co/job/Sentry/

  • Avatar of mcmonkey4eva mcmonkey4eva Mar 24, 2014 at 22:17 UTC - 1 like

    @chsedv: Go

    I'll be releasing a 1.7.5-compat. dev build on the wiki soon... after confirming Denizen and Citizens work 100% on 1.7.5, as those are higher priority.

    (Likely won't be an official build on this DBO page any time soon, unless jrbudda un-dies again)

  • Avatar of chsedv chsedv Mar 24, 2014 at 19:13 UTC - 0 likes

    Not working with Bukkit 1.7.5-R01. Pls Update

    [20:01:50] [Server thread/INFO]: [Citizens] The trait sentry failed to load for NPC ID: 248. [20:01:50] [Server thread/ERROR]: [Citizens] An exception occurred while the trait sentry was spawning for NPC ID 248. [20:01:50] [Server thread/WARN]: java.lang.NoClassDefFoundError: net/minecraft/server/v1_7_R1/World [20:01:50] [Server thread/WARN]: at net.aufdemrand.sentry.SentryTrait.ensureInst(Sentr yTrait.java:136) [20:01:50] [Server thread/WARN]: at net.aufdemrand.sentry.SentryTrait.onSpawn(SentryTr ait.java:117) [20:01:50] [Server thread/WARN]: at net.citizensnpcs.npc.CitizensNPC.spawn(CitizensNPC .java:196) [20:01:50] [Server thread/WARN]: at net.citizensnpcs.npc.CitizensNPC.load(CitizensNPC. java:114) [20:01:50] [Server thread/WARN]: at net.citizensnpcs.api.npc.SimpleNPCDataStore.loadIn to(SimpleNPCDataStore.java:59) [20:01:50] [Server thread/WARN]: at net.citizensnpcs.Citizens$2.run(Citizens.java:295) [20:01:50] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_7_R2.scheduler.CraftTask .run(CraftTask.java:58) [20:01:50] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_7_R2.scheduler.CraftSche duler.mainThreadHeartbeat(CraftScheduler.java:345) [20:01:50] [Server thread/WARN]: at net.minecraft.server.v1_7_R2.MinecraftServer.v(Min ecraftServer.java:618) [20:01:50] [Server thread/WARN]: at net.minecraft.server.v1_7_R2.DedicatedServer.v(Ded icatedServer.java:273) [20:01:50] [Server thread/WARN]: at net.minecraft.server.v1_7_R2.MinecraftServer.u(Min ecraftServer.java:566) [20:01:50] [Server thread/WARN]: at net.minecraft.server.v1_7_R2.MinecraftServer.run(M inecraftServer.java:472) [20:01:50] [Server thread/WARN]: at net.minecraft.server.v1_7_R2.ThreadServerApplicati on.run(SourceFile:618) [20:01:50] [Server thread/WARN]: Caused by: java.lang.ClassNotFoundException: net.minecraft.server.v1_7_R1.World [20:01:50] [Server thread/WARN]: at org.bukkit.plugin.java.PluginClassLoader.findClass (PluginClassLoader.java:67) [20:01:50] [Server thread/WARN]: at org.bukkit.plugin.java.PluginClassLoader.findClass (PluginClassLoader.java:62) [20:01:50] [Server thread/WARN]: at java.lang.ClassLoader.loadClass(Unknown Source) [20:01:50] [Server thread/WARN]: at java.lang.ClassLoader.loadClass(Unknown Source) [20:01:50] [Server thread/WARN]: ... 13 more

  • Avatar of CanandianVolchik CanandianVolchik Mar 24, 2014 at 03:13 UTC - 0 likes

    Thnx mc! Updating targets fixed gluich. Thank you!

  • Avatar of mcmonkey4eva mcmonkey4eva Mar 23, 2014 at 19:07 UTC - 0 likes

    @CanandianVolchik: Go

    - First, make sure you've added "entity:monster" or "player:volchik" or whatever so it knows to attack you.

    - Second, Sentry has quite a few weird bugs and limitations... one of which is that you have to wait about a minute after changing its targets before it will really notice them. So set it up, wait a bit, then leave and come back. It might help to let it retaliate against an attack, then either win or have its attacker get away, which should also force it to update its target settings and beginning attacking as planned after.

Your favorite Brigade?

  1. Choice:

  1. Results
  2. 0 comments

Facts

Date created
Sep 11, 2012
Categories
Last update
Dec 11, 2013
Development stage
Release
Language
  • enUS
License
Public Domain
Curse link
Sentry for Citizens2
Downloads
96,722
Recent files

Authors