File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/main/java/me/croabeast/file Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 2929 * Usage example:
3030 * <pre><code>
3131 * // Create a new YAMLFile instance for "config.yml" in the default folder:
32- * YAMLFile yamlFile = new YAMLFile(plugin, "config");
32+ * YAMLFile file = new YAMLFile(plugin, "config");
3333 *
3434 * // Set custom resource path if needed:
35- * yamlFile .setResourcePath("config.yml");
35+ * file .setResourcePath("config.yml");
3636 *
3737 * // Save defaults if the file does not exist:
38- * yamlFile .saveDefaults();
38+ * file .saveDefaults();
3939 *
4040 * // Retrieve and modify the configuration:
41- * FileConfiguration config = yamlFile .getConfiguration();
41+ * FileConfiguration config = file .getConfiguration();
4242 * config.set("setting", "value");
4343 *
4444 * // Save changes:
45- * yamlFile .save();
45+ * file .save();
4646 *
4747 * // Update the file using the YAMLUpdater:
48- * yamlFile .update();
48+ * file .update();
4949 * </code></pre>
5050 * </p>
5151 *
You can’t perform that action at this time.
0 commit comments