Sentry/Configuration: Difference between revisions

From Citizens Wiki

< Sentry

No edit summary
No edit summary
Line 54: Line 54:
  #- entity:owner
  #- entity:owner


#Configurable messages used by all Sentries. You can use <NPC>, <PLAYER>, <ITEM>, and <AMOUNT> as placeholders.
GlobalTexts:
Miss: "&7*** You MISS <NPC>."
Hit: "&f*** You hit <NPC> for <AMOUNT> damage."
Crit1: "&e*** You injure <NPC> for <AMOUNT> damage."
Crit2: "&6*** You MAIM <NPC> with your <ITEM> for <AMOUNT> damage."
Crit3: "&c*** You DISEMBOWEL <NPC> with your <ITEM> for <AMOUNT> damage."
Block: "&7*** You fail to penetrate <NPC>'s armor."
Glance: "&7*** Your blow glances off <NPC> for <AMOUNT> damage."
#These are the percentage chancees of doing a certain damage to a Sentry if Criticals is turned on. Whole numbers only.
HitChances:
Miss: 4
Glance: 4
Crit1: 6
Crit2: 4
Crit3: 2
   
   
#Set the item used by each type of Sentry. Use item name or id #.  
#Set the item used by each type of Sentry. Use item name or id #.  
Line 136: Line 154:
     - DIAMOND_BOOTS
     - DIAMOND_BOOTS
      
      
</syntaxhighlight>
</syntaxhighlight>


}}
}}

Revision as of 18:54, 15 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}}}