mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-30 22:53:27 +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();
|
plugin.getStorage().force().saveUUIDData(c.getName(), c.getUniqueId()).join();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
UUID uuid = plugin.getStorage().getUUID(c.getName()).join();
|
String name = plugin.getStorage().getName(c.getUniqueId()).join();
|
||||||
if (uuid == null) {
|
if (name == null) {
|
||||||
plugin.getApiProvider().fireEventAsync(new UserFirstLoginEvent(c.getUniqueId(), c.getName()));
|
plugin.getApiProvider().fireEventAsync(new UserFirstLoginEvent(c.getUniqueId(), c.getName()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -54,8 +54,8 @@ public class AbstractListener {
|
|||||||
plugin.getStorage().force().saveUUIDData(username, u);
|
plugin.getStorage().force().saveUUIDData(username, u);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
UUID uuid = plugin.getStorage().force().getUUID(username).join();
|
String name = plugin.getStorage().force().getName(u).join();
|
||||||
if (uuid == null) {
|
if (name == null) {
|
||||||
plugin.getApiProvider().fireEventAsync(new UserFirstLoginEvent(u, username));
|
plugin.getApiProvider().fireEventAsync(new UserFirstLoginEvent(u, username));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user