Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nuriofernandez/grechconfigplugin

Minecraft spigot plugin that handles configuration loading for other plugins.
https://github.com/nuriofernandez/grechconfigplugin

bukkit bukkit-api bukkit-plugin bukkitdev configuration-management minecraft minecraft-plugin

Last synced: 2 days ago
JSON representation

Minecraft spigot plugin that handles configuration loading for other plugins.

Awesome Lists containing this project

README

        

# GrechConfigPlugin

Minecraft spigot plugin that handles configuration loading for other plugins.

## Maven dependency

```xml

nurio-repo
https://maven.nurio.me/

```

```xml

me.nurio
bukkit.configuration
1.2
provided

```

## Usage examples

```java
// Instanciate the GrechConfig class
// GrechAreas is the main class of the GrechAreas plugin
GrechConfig config = new GrechConfig(GrechAreas.getPlugin(), "areas" + File.separator + file.getName());

// Retrieve data from the file
String name = config.getConfig().getString("name");
UUID uuid = UUID.fromString(config.getConfig().getString("uuid"));

// Retrieve locations from the file
Location start = config.getLocation("areas.1.start");
Location end = config.getLocation("areas.1.end");
```