Denizen/0.7/File Structure: Difference between revisions
Aufdemrand (talk | contribs) (Created page with "<div style="margin-right:2.0em; padding:10px; font-family:camingodos-web; font-size:110%;"> === File Structure === [[File:Figure 1 - Denizen file structure.png|right|Denizen F...") |
No edit summary |
||
(15 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<div style="margin- | |||
For more up-to-date information and full details on specific features (individual commands or tags, for example), check the [https://one.denizenscript.com/denizen/cmds/ Meta Documentation]. | |||
<div style="margin-right:2.0em; padding:10px; font-family:camingodos-web; font-size:110%;">Denizen requires the use of a few different YML files to operate properly, so let's first go over the file structure. See below for more details about each file. This section may seem bloated, but please read it to get a good understanding of the file structure since you will be using these a lot! | If you want a full tutorial to help get you set up, check out the [https://one.denizenscript.com/denizen/cmds/denizen/vids Tutorial Videos] on youtube or the [https://guide.denizenscript.com/ Beginner's Guide] text website. | ||
If you need quick help, visit our [https://discord.gg/Q6pZGSR Discord group]. | |||
<br><br><br> | |||
<span style="font-family:natalya-alternate-one; font-size:300%; margin-right:-7px; margin-left:-10px;">This wiki is outdated, please view the tutorial videos/guide, meta documentation, or Discord group (all linked above) for up-to-date information!</span> | |||
<s> | |||
<div style="font-family:camingodos-web; font-size:100%;"> | |||
<div style="float:right;margin-left:2.0em; padding:10px; padding-bottom:20px; font-family:camingodos-web; font-size:110%; ">__TOC__</div> | |||
<div style="margin-right:2.0em; margin-top:35px; padding:10px; font-family:camingodos-web; font-size:110%;"> | |||
<span style="font-family:natalya-alternate-one; font-size:650%; margin-right:-20px; margin-left:-10px;">F</span>ile structure in Denizen is important to understand since it requires the use of a few different YML files to operate properly, so let's first go over the file structure. See below for more details about each file. This section may seem bloated, but please read it to get a good understanding of the file structure since you will be using these a lot! | |||
</div> | </div> | ||
==== denizen.jar ==== | ==== denizen.jar ==== | ||
<div style="margin-right:2.0em; padding:10px; font-family:camingodos-web; font-size:110%;">We have gotten a few questions about where to place the Denizen JAR file, especially from former users of Citizens 1.2, where Citizens-types went in a special folder. This is not the case for Citizens2 or Denizen. It should be treated like any other bukkit plugin and be placed in your craftbukkit/plugins/ folder. Please note that while a lot of plugins will automatically generate a folder to go along with it, Denizen does not, and this should be either created by hand and populated, or generated by copying the [[Denizen/Start-up kit|Start-up Kit]] with sample .yml configuration files and scripts. | <div style="margin-right:2.0em; padding:10px; font-family:camingodos-web; font-size:110%;">We have gotten a few questions about where to place the Denizen JAR file, especially from former users of Citizens 1.2, where Citizens-types went in a special folder. This is not the case for Citizens2 or Denizen. It should be treated like any other bukkit plugin and be placed in your craftbukkit/plugins/ folder. Please note that while a lot of plugins will automatically generate a folder to go along with it, Denizen does not, and this should be either created by hand and populated, or generated by copying the [[Denizen/0.7/Start-up kit|Start-up Kit]] with sample .yml configuration files and scripts. | ||
</div> | </div> | ||
==== config.yml ==== | ==== config.yml ==== | ||
<div style="margin-right:2.0em; padding:10px; font-family:camingodos-web; font-size:110%;">The Denizen config.yml contains nodes to alter the stock behavior and look of Denizen | <div style="margin-right:2.0em; padding:10px; font-family:camingodos-web; font-size:110%;"> | ||
[[File:Figure 1 - Denizen file structure.png|450px|right|Denizen File Structure]] | |||
The Denizen config.yml contains nodes to alter the stock behavior and look of Denizen. You can use the config.yml to override defaults. | |||
This file can be reloaded from disk to Denizen memory at any time by using <tt>/denizen reload</tt>. Some changes in the config.yml may require a restart of the server. This includes <tt>interact_delay_in_ticks</tt>, but is not limited to that config node. | This file can be reloaded from disk to Denizen memory at any time by using <tt>/denizen reload</tt>. Some changes in the config.yml may require a restart of the server. This includes <tt>interact_delay_in_ticks</tt>, but is not limited to that config node. | ||
See: [[Denizen/config.yml]] for a stock copy and explanation of all available options. | See: [[Denizen/0.7/config.yml]] for a stock copy and explanation of all available options. | ||
</div> | </div> | ||
==== assignments.yml ==== | ==== assignments.yml ==== | ||
Line 21: | Line 40: | ||
This file can be reloaded from disk into Denizen memory at any time by using <code>/denizen reload</code> | This file can be reloaded from disk into Denizen memory at any time by using <code>/denizen reload</code> | ||
</div> | |||
===={{color|red|white|saves.yml}}==== | ===={{color|red|white|saves.yml}}==== | ||
Line 29: | Line 48: | ||
To reiterate: This file saves periodically, and automatically, upon progression and a server stop, and should only be edited by hand when the server is off or Denizen is disabled. | To reiterate: This file saves periodically, and automatically, upon progression and a server stop, and should only be edited by hand when the server is off or Denizen is disabled. | ||
</div> | </div> | ||
===={{color|red|white|read-only-scripts.yml}}==== | ===={{color|red|white|read-only-scripts.yml}}==== | ||
Line 35: | Line 55: | ||
This file is populated on a server restart, or by using the <code>/denizen reload</code> command. | This file is populated on a server restart, or by using the <code>/denizen reload</code> command. | ||
</div> | </div> | ||
==== /scripts/ folder ==== | ==== /scripts/ folder ==== | ||
Line 41: | Line 62: | ||
The files in the plugins/Denizen/scripts/ folder can be named whatever you please, as long as they end in <code>.yml</code>. Be sure not to duplicate script names from file to file as this will cause problems. All scripts in the scripts folder are merged into <code>read-only-scripts.yml</code>, so there will be an issue if two scripts are named the same. | The files in the plugins/Denizen/scripts/ folder can be named whatever you please, as long as they end in <code>.yml</code>. Be sure not to duplicate script names from file to file as this will cause problems. All scripts in the scripts folder are merged into <code>read-only-scripts.yml</code>, so there will be an issue if two scripts are named the same. | ||
</div> | </div> | ||
___NOTOC___ | |||
[[Category:Denizen 0.7]]</s> |
Latest revision as of 16:11, 24 March 2020
For more up-to-date information and full details on specific features (individual commands or tags, for example), check the Meta Documentation.
If you want a full tutorial to help get you set up, check out the Tutorial Videos on youtube or the Beginner's Guide text website.
If you need quick help, visit our Discord group.
This wiki is outdated, please view the tutorial videos/guide, meta documentation, or Discord group (all linked above) for up-to-date information!
File structure in Denizen is important to understand since it requires the use of a few different YML files to operate properly, so let's first go over the file structure. See below for more details about each file. This section may seem bloated, but please read it to get a good understanding of the file structure since you will be using these a lot!
denizen.jar
config.yml
The Denizen config.yml contains nodes to alter the stock behavior and look of Denizen. You can use the config.yml to override defaults.
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.
See: Denizen/0.7/config.yml for a stock copy and explanation of all available options.
assignments.yml
This file can be reloaded from disk into Denizen memory at any time by using /denizen reload
saves.yml
To reiterate: This file saves periodically, and automatically, upon progression and a server stop, and should only be edited by hand when the server is off or Denizen is disabled.
read-only-scripts.yml
This file is populated on a server restart, or by using the /denizen reload
command.
/scripts/ folder
/denizen reload
, the files are combined and put into the read-only-scripts.yml for the Denizen to read from. This allows better organization of scripts to be maintained, since the amount of scripts can easily get into the triple digits.
The files in the plugins/Denizen/scripts/ folder can be named whatever you please, as long as they end in .yml
. Be sure not to duplicate script names from file to file as this will cause problems. All scripts in the scripts folder are merged into read-only-scripts.yml
, so there will be an issue if two scripts are named the same.
__