Skip to content

Commit

Permalink
Add config comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Warriorrrr committed Feb 25, 2024
1 parent f12069b commit e74d5ed
Showing 1 changed file with 28 additions and 3 deletions.
31 changes: 28 additions & 3 deletions Towny/src/main/java/com/palmergames/bukkit/config/ConfigNodes.java
Original file line number Diff line number Diff line change
Expand Up @@ -3153,13 +3153,38 @@ public enum ConfigNodes {
"",
"# The width of the map shown in /towny map and /res toggle map.",
"# Minimum 7, maximum 27, only odd numbers are accepted."),
CUSTOM_LISTS("custom_lists", "", ""), // TODO documentation in this comment
CUSTOM_LISTS("custom_lists", "", "",
"# This section of the config allows you to specify custom lists of blocks or entities, that can then be used elsewhere in the config.",
"# A custom syntax is used to specify whether to include or exclude certain patterns from the resulting set.",
"#",
"# Format:",
"# *string: Includes all elements that end with 'string'",
"# string*: Includes all elements that start with 'string'",
"# !*string: Excludes all elements that don't end with 'string'",
"# !string*: Excludes all elements that don't start with 'string'",
"# #tag: Includes all elements that are contained in the given tag, valid tags can be found here: https://github.com/misode/mcmeta/tree/data/data/minecraft/tags in the blocks or entity_type folders.",
"# !#tag: Excludes all elements that are contained in the given tag",
"# +string: Includes the element with name 'string'",
"# -string: Excludes the element with name 'string'",
"# ~string: Includes all elements that contain 'string' in the name",
"# !~string: Excludes all elements that contain 'string' in the name",
"# c:class: Includes all elements that are instances of the given class"),
CUSTOM_LISTS_ITEM_LISTS("custom_lists.item_lists",
new HashMap<>(),
""),
"",
"# Define your custom item lists here.",
"# Example:",
"#",
"# item_lists:",
"# chests: '~chest'"),
CUSTOM_LISTS_ENTITY_LISTS("custom_lists.entity_lists",
new HashMap<>(),
"");
"",
"# Define your custom entity lists here.",
"# Example:",
"#",
"# entity_lists:",
"# animals: 'c:Animals'");

private final String root;
private final Object defaultValue;
Expand Down

0 comments on commit e74d5ed

Please sign in to comment.