Denizen/0.7/config.yml: Difference between revisions

From Citizens Wiki

< Denizen‎ | 0.7

Line 30: Line 30:
default_chat_cooldown_in_seconds: 2.0
default_chat_cooldown_in_seconds: 2.0


# Denizen by default uses both right and left clicks to activate the click trigger
# if the damage trigger (left click) is disabled. Select false if you would prefer
# if the damage trigger (left click) is disabled. Select false if you would prefer
# to have click triggers activate with the right mouse button only.
# to have click triggers activate with the right mouse button only.
disabled_damage_trigger_instead_triggers_click: true
disabled_damage_trigger_instead_triggers_click: false


# Default engage timeout. When NPCs are set to ENGAGE, this is the default timeout
# Default engage timeout. When NPCs are set to ENGAGE, this is the default timeout

Revision as of 05:30, 1 September 2012

Denizen config.yml

The Denizen config.yml contains nodes to alter the default behavior and look of Denizen.

Denizen does not automatically create this file!

Why is this? Denizen stores its entire config inside memory, so it's not necessary to have a copy inside the Denizen folder unless you need to change the defaults. You can use the config.yml to override those defaults. Not having Denizen write to the config.yml itself (as well as scripts files) ensures that upon a /denizen reload, the config.yml, between a save and reload, is never changed when you don't want it to. This also keeps code comments inside the YML files stay intact, exactly the way you left them from last edit allowing you to leave yourself and others detailed notes and ideas.

This file can be reloaded from disk to Denizen memory at any time by using /denizen reload. Some changes in the config.yml may require a restart of the server. This includes interact_delay_in_ticks, but is not limited to that config node.


To change the Denizen defaults:

  • Create a file called config.yml and place it in the plugins\Denizen\ directory.
  • Copy the code below into that file.
  • Edit the defaults, and call /denizen reload from in-game.

Default config.yml

Code: Default Denizen config.yml
{{{2}}}