mirror of
https://github.com/CarmJos/EasyConfiguration.git
synced 2026-06-04 10:38:19 +08:00
feat(section): Add #path and #fullPath for sections
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@
|
||||
<parent>
|
||||
<artifactId>easyconfiguration-parent</artifactId>
|
||||
<groupId>cc.carm.lib</groupId>
|
||||
<version>4.0.6</version>
|
||||
<version>4.0.7</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<properties>
|
||||
|
||||
@@ -36,6 +36,7 @@ public class UserRecord extends AbstractRecord {
|
||||
}
|
||||
|
||||
public static UserRecord deserialize(ConfigureSection section) {
|
||||
System.out.println("> Deserializing -> " + section.fullPath());
|
||||
String name = section.getString("name");
|
||||
if (name == null) throw new NullPointerException("name is null");
|
||||
String uuidString = section.getString("info.uuid");
|
||||
|
||||
Reference in New Issue
Block a user