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 Joshii2201 Joshii2201 Jun 25, 2016 at 16:49 UTC - 0 likes

    Don't work correctly

    I ues /trait sentry

    25.06 18:47:46 [Server] WARN java.lang.NoClassDefFoundError: net/minecraft/server/v1_9_R2/Packet
    25.06 18:47:46 [Server] WARN at net.aufdemrand.sentry.SentryTrait.ensureInst(SentryTrait.java:137)
    25.06 18:47:46 [Server] WARN at net.aufdemrand.sentry.SentryTrait.onSpawn(SentryTrait.java:119)
    25.06 18:47:46 [Server] WARN at net.citizensnpcs.api.npc.AbstractNPC.addTrait(AbstractNPC.java:110)
    25.06 18:47:46 [Server] WARN at net.citizensnpcs.api.npc.AbstractNPC.addTrait(AbstractNPC.java:89)
    25.06 18:47:46 [Server] WARN at net.citizensnpcs.commands.TraitCommands.addTrait(TraitCommands.java:64)
    25.06 18:47:46 [Server] WARN at net.citizensnpcs.commands.TraitCommands.toggle(TraitCommands.java:157)
    25.06 18:47:46 [Server] WARN at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    25.06 18:47:46 [Server] WARN at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    25.06 18:47:46 [Server] WARN at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    25.06 18:47:46 [Server] WARN at java.lang.reflect.Method.invoke(Unknown Source)
    25.06 18:47:46 [Server] WARN at net.citizensnpcs.api.command.CommandManager.executeMethod(CommandManager.java:152)
    25.06 18:47:46 [Server] WARN at net.citizensnpcs.api.command.CommandManager.execute(CommandManager.java:87)
    25.06 18:47:46 [Server] WARN at net.citizensnpcs.api.command.CommandManager.executeSafe(CommandManager.java:175)
    25.06 18:47:46 [Server] WARN at net.citizensnpcs.Citizens.onCommand(Citizens.java:236)
    25.06 18:47:46 [Server] WARN at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
    25.06 18:47:46 [Server] WARN at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141)
    25.06 18:47:46 [Server] WARN at org.bukkit.craftbukkit.v1_10_R1.CraftServer.dispatchCommand(CraftServer.java:646)
    25.06 18:47:46 [Server] WARN at net.minecraft.server.v1_10_R1.PlayerConnection.handleCommand(PlayerConnection.java:1351)
    25.06 18:47:46 [Server] WARN at net.minecraft.server.v1_10_R1.PlayerConnection.a(PlayerConnection.java:1186)
    25.06 18:47:46 [Server] WARN at net.minecraft.server.v1_10_R1.PacketPlayInChat.a(PacketPlayInChat.java:45)
    25.06 18:47:46 [Server] WARN at net.minecraft.server.v1_10_R1.PacketPlayInChat.a(PacketPlayInChat.java:1)
    25.06 18:47:46 [Server] WARN at net.minecraft.server.v1_10_R1.PlayerConnectionUtils$1.run(SourceFile:13)
    25.06 18:47:46 [Server] WARN at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    25.06 18:47:46 [Server] WARN at java.util.concurrent.FutureTask.run(Unknown Source)
    25.06 18:47:46 [Server] WARN at net.minecraft.server.v1_10_R1.SystemUtils.a(SourceFile:45)
    25.06 18:47:46 [Server] WARN at net.minecraft.server.v1_10_R1.MinecraftServer.D(MinecraftServer.java:733)
    25.06 18:47:46 [Server] WARN at net.minecraft.server.v1_10_R1.DedicatedServer.D(DedicatedServer.java:399)
    25.06 18:47:46 [Server] WARN at net.minecraft.server.v1_10_R1.MinecraftServer.C(MinecraftServer.java:672)
    25.06 18:47:46 [Multicraft] Skipped 13 lines due to rate limit (30/s)
    
  • Avatar of christiank2012 christiank2012 Jun 25, 2016 at 07:12 UTC - 0 likes

    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

  • Avatar of d0do63 d0do63 Jun 21, 2016 at 20:44 UTC - 0 likes

    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

  • Avatar of Sitieno14 Sitieno14 Jun 10, 2016 at 09:12 UTC - 0 likes

    Update to 1.8 please

  • Avatar of SwahgnerDK SwahgnerDK May 27, 2016 at 23:02 UTC - 0 likes

    @UltiMCDK: Go I had this as well, but in jenkins I surfed the site for the update closest to my game version and it fixed it.

    MineCityRP Join the roleplay experience!

    MineCityRP Home Page

    Minecraft-servers

  • Avatar of SwahgnerDK SwahgnerDK May 27, 2016 at 23:00 UTC - 0 likes

    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 ====

  • Avatar of UltiMCDK UltiMCDK May 15, 2016 at 18:05 UTC - 0 likes

    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.

  • Avatar of TeamL TeamL May 03, 2016 at 19:31 UTC - 0 likes

    Can you pleeeeaaase update this to 1.8.8? :):):):):)

  • Avatar of mcmonkey4eva mcmonkey4eva Apr 26, 2016 at 02:30 UTC - 0 likes

    @ProtoTypeEU: Go

    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)

  • Avatar of ProtoTypeEU ProtoTypeEU Apr 25, 2016 at 23:38 UTC - 0 likes

    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

Your favorite Brigade?

  1. Choice:

  1. Results
  2. 2 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
185,357
Recent files

Authors