Skip to content
This repository was archived by the owner on Aug 15, 2021. It is now read-only.

Ghost-chu/BukkitConfiguration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BukkitConfiguration

This is a Unofficial cross-platform Bukkit YamlConfiguration implement.

Issues / Feedback

https://github.com/Ghost-chu/BukkitConfiguration/issues

Read YAML File

First, Add this to your dependency. Second,

FileConfiguration fileConfiguration = YamlConfiguration.loadConfiguration(new File("test.yml"));
fileConfiguration.getString("path.to.str");
fileConfiguration.getBoolean("path.to.boolean");
fileConfiguration.set("apple-color", "red");
fileConfiguration.set("friends.alex.age", 18);
fileConfiguration.set("useless-field", null); //Set to null to delete.
ConfigurationSection section = fileConfiguration.getConfigurationSection("friends");
section.getInt("alex.age");
List<String> strList = fileConfiguration.getStringList("meme");

And more! Enjoy!

Upstream

https://hub.spigotmc.org/stash/projects/SPIGOT/repos/bukkit/browse

Maven repo

<repository>
    <id>quickshop-repo</id>
    <url>https://repo.codemc.io/repository/maven-snapshots/</url>
</repository>

<dependency>
    <groupId>cc.bukkit</groupId>
    <artifactId>BukkitConfiguration</artifactId>
    <version>1.16.1-R0.1-SNAPSHOT</version>
</dependency>

About

Unofficial CrossPlatform Bukkit YamlConfiguration implement.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages