mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-28 05:35:26 +01:00
change first login event handling
This commit is contained in:
parent
2ce5679373
commit
a54046907d
@ -108,8 +108,8 @@ public class BungeeListener extends AbstractListener implements Listener {
|
||||
plugin.getStorage().force().saveUUIDData(c.getName(), c.getUniqueId()).join();
|
||||
}
|
||||
} else {
|
||||
UUID uuid = plugin.getStorage().getUUID(c.getName()).join();
|
||||
if (uuid == null) {
|
||||
String name = plugin.getStorage().getName(c.getUniqueId()).join();
|
||||
if (name == null) {
|
||||
plugin.getApiProvider().fireEventAsync(new UserFirstLoginEvent(c.getUniqueId(), c.getName()));
|
||||
}
|
||||
|
||||
|
@ -54,8 +54,8 @@ public class AbstractListener {
|
||||
plugin.getStorage().force().saveUUIDData(username, u);
|
||||
}
|
||||
} else {
|
||||
UUID uuid = plugin.getStorage().force().getUUID(username).join();
|
||||
if (uuid == null) {
|
||||
String name = plugin.getStorage().force().getName(u).join();
|
||||
if (name == null) {
|
||||
plugin.getApiProvider().fireEventAsync(new UserFirstLoginEvent(u, username));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user