diff --git a/common/src/main/java/me/lucko/luckperms/common/storage/implementation/mongodb/MongoStorage.java b/common/src/main/java/me/lucko/luckperms/common/storage/implementation/mongodb/MongoStorage.java index bf595a97a..574df62f2 100644 --- a/common/src/main/java/me/lucko/luckperms/common/storage/implementation/mongodb/MongoStorage.java +++ b/common/src/main/java/me/lucko/luckperms/common/storage/implementation/mongodb/MongoStorage.java @@ -667,7 +667,7 @@ public class MongoStorage implements StorageImplementation { } if (document.containsKey("expiry")) { - builder.expiry(document.getLong("expiry")); + builder.expiry((long) document.get("expiry")); } if (document.containsKey("context") && document.get("context") instanceof List) {