Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kyrptonaught committed Nov 1, 2023
1 parent 8c7f330 commit f655be4
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 75 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
<artifactId>gson</artifactId>
<version>2.10.1</version>
</dependency>

</dependencies>

<build>
<plugins>
<plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public void load(Gson gson) {
createDirectories();

JsonObject obj = readFileJson(gson, "kvs.json", JsonObject.class);
if(obj == null) return;
if (obj == null) return;
obj.entrySet().forEach(outer -> {
String id = outer.getKey();
JsonObject inner = outer.getValue().getAsJsonObject();
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
package net.kyrptonaught.LEMBackend.userConfig;

import com.google.gson.Gson;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import net.kyrptonaught.LEMBackend.LEMBackend;
import net.kyrptonaught.LEMBackend.Module;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class UserConfigModule extends Module {

public UserConfigModule() {
Expand All @@ -18,7 +13,7 @@ public UserConfigModule() {

public JsonObject loadPlayer(String player) {
JsonObject obj = readFileJson(LEMBackend.gson, player + ".json", JsonObject.class);
if(obj == null) obj = new JsonObject();
if (obj == null) obj = new JsonObject();

return obj;
}
Expand All @@ -31,5 +26,4 @@ public void syncPlayer(String player, String json) {
public void load(Gson gson) {
createDirectories();
}

}

0 comments on commit f655be4

Please sign in to comment.