mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-13 21:54:05 +00:00
Fix primary group not loading and Vault support with EssentialsChat
This commit is contained in:
1 parent
1b09488859
commit
d35774b401
5 files changed
+139
-5
No files matched your search
@@ -161,7 +161,7 @@ public class FlatfileDatastore extends Datastore {
|
||||
reader.nextName(); // name record
|
||||
reader.nextString(); // name
|
||||
reader.nextName(); // primaryGroup record
|
||||
reader.nextString(); // primaryGroup
|
||||
user.setPrimaryGroup(reader.nextString()); // primaryGroup
|
||||
reader.nextName(); //perms
|
||||
reader.beginObject();
|
||||
while (reader.hasNext()) {
|
||||
|
||||
@@ -184,6 +184,7 @@ abstract class SQLDatastore extends Datastore {
|
||||
});
|
||||
} else {
|
||||
user.getNodes().putAll(gson.fromJson(resultSet.getString("perms"), NM_TYPE));
|
||||
user.setPrimaryGroup(resultSet.getString("primary_group"));
|
||||
}
|
||||
return success;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user