fix: make jsonObject in PersistentDataUtilities synchronous (hopefully)
This commit is contained in:
@@ -19,8 +19,8 @@ public class MailPlugin extends PlayersPlugin.Listener {
|
||||
private final Gson gson = new Gson();
|
||||
|
||||
static {
|
||||
if (PersistentDataUtilities.jsonObject.has("mails")) {
|
||||
mails = PersistentDataUtilities.jsonObject.get("mails").getAsJsonArray();
|
||||
if (PersistentDataUtilities.has("mails")) {
|
||||
mails = PersistentDataUtilities.get("mails").getAsJsonArray();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user