Load ChatUsers async

This commit is contained in:
destro174
2021-08-01 15:08:24 +02:00
parent 097541e86f
commit 2d7d39a86d
3 changed files with 38 additions and 7 deletions
@@ -25,7 +25,7 @@ public class PlayerListener implements Listener {
ChatUser user = ChatUserManager.getChatUser(uuid);
if(user != null) return;
// todo actually load the users from db
// user failed to load - create a new one
ChatUser chatUser = new ChatUser(uuid, -1, false, false);
ChatUserManager.addUser(chatUser);
Queries.saveUser(chatUser);