Use

This page explains how to use AdvancedStorage as an API in your plugin.

Using the Yaml class.

First, import Yaml.class from AdvancedStorage.

import com.AdvancedStorage.plugin.*;
<</code>>\\
Now define a new Yaml variable.\\
<<code>>
Yaml yaml = new Yaml(this.getDataFolder().getAbsolutePath() + File.separator + "config1.yml");
<</code>>

**Yaml.class' methods.**

The two (2) most used variables in the Yaml class are\\
<<code>>
Yaml.getString(String);
<</code>>\\
and\\
<<code>>
Yaml.getInteger(String);

To-Do.

  • Finish Yaml.class' tutorial.

Comments

Posts Quoted:
Reply
Clear All Quotes