diff --git a/common/src/main/java/me/lucko/luckperms/storage/methods/JSONDatastore.java b/common/src/main/java/me/lucko/luckperms/storage/methods/JSONDatastore.java index 62b1aa6f..63d82e0c 100644 --- a/common/src/main/java/me/lucko/luckperms/storage/methods/JSONDatastore.java +++ b/common/src/main/java/me/lucko/luckperms/storage/methods/JSONDatastore.java @@ -140,6 +140,7 @@ public class JSONDatastore extends FlatfileDatastore { }, false); } finally { user.getIoLock().unlock(); + user.refreshPermissions(); } } diff --git a/common/src/main/java/me/lucko/luckperms/storage/methods/MongoDBDatastore.java b/common/src/main/java/me/lucko/luckperms/storage/methods/MongoDBDatastore.java index 93600a3f..79ab53e8 100644 --- a/common/src/main/java/me/lucko/luckperms/storage/methods/MongoDBDatastore.java +++ b/common/src/main/java/me/lucko/luckperms/storage/methods/MongoDBDatastore.java @@ -179,6 +179,7 @@ public class MongoDBDatastore extends Datastore { }, false); } finally { user.getIoLock().unlock(); + user.refreshPermissions(); } } diff --git a/common/src/main/java/me/lucko/luckperms/storage/methods/SQLDatastore.java b/common/src/main/java/me/lucko/luckperms/storage/methods/SQLDatastore.java index 4e9c8154..36c7bb93 100644 --- a/common/src/main/java/me/lucko/luckperms/storage/methods/SQLDatastore.java +++ b/common/src/main/java/me/lucko/luckperms/storage/methods/SQLDatastore.java @@ -185,6 +185,7 @@ abstract class SQLDatastore extends Datastore { ); } finally { user.getIoLock().unlock(); + user.refreshPermissions(); } } diff --git a/common/src/main/java/me/lucko/luckperms/storage/methods/YAMLDatastore.java b/common/src/main/java/me/lucko/luckperms/storage/methods/YAMLDatastore.java index f3d58827..a5d7d9d7 100644 --- a/common/src/main/java/me/lucko/luckperms/storage/methods/YAMLDatastore.java +++ b/common/src/main/java/me/lucko/luckperms/storage/methods/YAMLDatastore.java @@ -126,6 +126,7 @@ public class YAMLDatastore extends FlatfileDatastore { }, false); } finally { user.getIoLock().unlock(); + user.refreshPermissions(); } }