mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-25 11:04:21 +00:00
Add sqlite support
This commit is contained in:
1 parent
f6d8fb5286
commit
60f6bac903
15 files changed
+301
-188
No files matched your search
@@ -1,6 +1,5 @@
|
||||
package me.lucko.luckperms.utils;
|
||||
|
||||
import com.google.gson.reflect.TypeToken;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import me.lucko.luckperms.LuckPermsPlugin;
|
||||
@@ -260,20 +259,4 @@ public abstract class PermissionObject {
|
||||
|
||||
return perms;
|
||||
}
|
||||
|
||||
/**
|
||||
* Loads serialised nodes into the object
|
||||
* @param json The json data to be loaded
|
||||
*/
|
||||
public void loadNodes(String json) {
|
||||
nodes.putAll(plugin.getGson().fromJson(json, new TypeToken<Map<String, Boolean>>(){}.getType()));
|
||||
}
|
||||
|
||||
/**
|
||||
* Serialize the nodes in the object to be saved in the datastore
|
||||
* @return A json string
|
||||
*/
|
||||
public String serializeNodes() {
|
||||
return plugin.getGson().toJson(nodes);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user