1
1
# ConfigAPI
2
- Config API for Bukkit 1.8 - 1.16 based on Dynamic Proxies
2
+ Config API for Bukkit 1.8 - 1.16 based on dynamic proxies
3
3
4
4
## Features:
5
- - Create config via Interface with ` default ` getters and setters
6
- - Automatic generation of YAML files based on Java code
7
- - Automatic updates of YAML file after adding new field to config
8
- - Support of comments in YAML files
9
- - Support of multiple config files
5
+ - Works with Bukkit 1.8 - 1.16
6
+ - Compatible with Java 8 - 15
7
+ - Multiple configuration files
8
+ - Fastly create configs via Java interface with ` default ` getters
9
+ - Automatic generation of config's YAML file
10
+ - Automatic update of config's file after add new methods to it's interface
11
+ - Support for setting new values to config
10
12
- System of serializers for custom objects (e.g. ItemStack, Location)
11
- - Automatic translation of ` & ` based colors
13
+ - Support of comments in YAML config
14
+ - Automatic translation of ` & ` based colors
12
15
13
16
## Import
14
17
#### Gradle
@@ -108,11 +111,9 @@ public interface TestConfig extends Config {
108
111
109
112
#### Automatic generated YAML from above Java code
110
113
``` yaml
111
- values :
112
- a : 1
113
- b : 2
114
114
example_message : ' &cIt'' s default value of example message' # This comment will be saved to YAML file!
115
115
spawn_points :
116
+ structure : java.util.ArrayList
116
117
type : org.bukkit.Location
117
118
' 0 ' :
118
119
world : world
@@ -135,14 +136,20 @@ spawn_points:
135
136
z : 20.0
136
137
yaw : 0.0
137
138
pitch : 180.0
139
+ values :
140
+ structure : java.util.HashMap
141
+ type : java.lang.Integer
142
+ a : 1
143
+ b : 2
138
144
award :
139
145
material : DIAMOND_SWORD
140
146
amount : 1
141
147
name : ' &cAward'
142
148
lore :
143
- - ' &aFirst line'
144
- - ' &cSecond line'
145
-
149
+ structure : java.util.ArrayList
150
+ type : java.lang.String
151
+ ' 0 ' : ' &aFirst line'
152
+ ' 1 ' : ' &cSecond line'
146
153
` ` `
147
154
148
155
## Serializers
@@ -190,4 +197,4 @@ public class TestPlugin extends JavaPlugin {
190
197
// Init your configs...
191
198
192
199
}
193
- }
200
+ }
0 commit comments