Sentry/Configuration: Difference between revisions

From Citizens Wiki

< Sentry

No edit summary
No edit summary
Line 11: Line 11:
#Server-wide options for Sentry
#Server-wide options for Sentry
Server:
Server:
  #If true Sentries will die like normal mobs, instead of being despawned.  
  #If true Sentries will die like normal mobs, instead of being despawned. Player-type Sentry deaths will be announced in chat.
#Player-type Sentry deaths will be announced in chat.
  DieLikePlayers: false
  DieLikePlayers: false
  #The amount of EXP sentries drop. Only works if Drops is turned on.
  #The amount of EXP sentries drop. Only works if Drops is turned on.
  ExpValue: 5
  ExpValue: 5
 
#This is how often, in ticks, the Sentry performs his interal logic looking for targets, etc. Increasing this value may lighten server load,
#but will decrease Sentries responsiveness and maximum rate of fire.
LogicTicks: 10


#Default stats for new Sentries
#Default stats for new Sentries
Line 25: Line 26:
  Health: 20
  Health: 20
  AttackRate: 2.0
  AttackRate: 2.0
  HealRate: 1.0
  HealRate: 0.0
  NightVision: 16
  NightVision: 16
  Range: 10
  Range: 10
Line 41: Line 42:
#Default texts for new Sentries. You can use <NPC> and <PLAYER> as placeholders.
#Default texts for new Sentries. You can use <NPC> and <PLAYER> as placeholders.
DefaultTexts:
DefaultTexts:
  Warning: <NPC> says Halt! Come no closer!
  Warning: "&c<NPC> says Halt! Come no closer!"
  Greeting: <NPC> says Welcome, <PLAYER>
  Greeting: "&a<NPC> says Welcome, <PLAYER>"
   
   
#Default target list for new Sentries.  
#Default target list for new Sentries.  
Line 65: Line 66:
  StormCaller1: PAPER
  StormCaller1: PAPER
  StormCaller2: BOOK
  StormCaller2: BOOK
StormCaller3: BOOK_AND_QUILL
  #Note Witch Doctors need a potion equipped to know what to throw!
  #Note Witch Doctors need a potion equipped to know what to throw!
  WitchDoctor: POTION
  WitchDoctor: POTION
Line 95: Line 97:
  - SNOW_BALL slow:20
  - SNOW_BALL slow:20
  #- GOLD_SWORD poison:60:2 confusion
  #- GOLD_SWORD poison:60:2 confusion
 
#The lists below control what items are equipped as armor. These should only be changed to disable specific armors or add extended (i.e. Spout) items.
#The following items will be equipped as helmets, can use name or id #
Helmets:
  - PUMPKIN
  - JACK_O_LANTERN
  - LEATHER_HELMET
  - CHAINMAIL_HELMET
  - GOLD_HELMET
  - IRON_HELMET
  - DIAMOND_HELMET
 
#The following items will be equipped as chestplates, can use name or id #.
Chestplates:
    - LEATHER_CHESTPLATE
    - CHAINMAIL_CHESTPLATE
    - GOLD_CHESTPLATE
    - IRON_CHESTPLATE
    - DIAMOND_CHESTPLATE
 
#The following items will be equipped as leggings, can use name or id #
Leggings:
    - LEATHER_LEGGINGS
    - CHAINMAIL_LEGGINGS
    - GOLD_LEGGINGS
    - IRON_LEGGINGS
    - DIAMOND_LEGGINGS
   
#The following items will be equipped as boots, can use name or id #
Boots: 
    - LEATHER_BOOTS
    - CHAINMAIL_BOOTS
    - GOLD_BOOTS
    - IRON_BOOTS
    - DIAMOND_BOOTS
   


</syntaxhighlight>
</syntaxhighlight>


}}
}}

Revision as of 04:27, 10 October 2012

The first time you load Sentry it will create /Sentry/config.yml. This file can be used to adjust server-wide options for Sentry. After changing this file call /sentry Reload to reload it.

New versions of Sentry will NOT make a new file if it exists already, so keep an eye on this page in case more options are added or changed.

Note: all Items can be matched by name or id. I know some users would like to match on data value and/or enchantment value. This will be added in the future.


Code: Sentry config.yml
{{{2}}}