mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-24 03:25:19 +01:00
Only query online players when upgrading usernames --> uuids in Vault hooks
This commit is contained in:
parent
6923c4e247
commit
e1c60fa70f
@ -135,7 +135,7 @@ public abstract class AbstractVaultChat extends Chat {
|
||||
if (player == null) {
|
||||
return null;
|
||||
}
|
||||
return player(Bukkit.getOfflinePlayer(player));
|
||||
return player(Bukkit.getPlayerExact(player));
|
||||
}
|
||||
|
||||
private static UUID player(OfflinePlayer player) {
|
||||
|
@ -99,7 +99,7 @@ public abstract class AbstractVaultPermission extends Permission {
|
||||
if (player == null) {
|
||||
return null;
|
||||
}
|
||||
return player(Bukkit.getOfflinePlayer(player));
|
||||
return player(Bukkit.getPlayerExact(player));
|
||||
}
|
||||
|
||||
private static UUID player(OfflinePlayer player) {
|
||||
|
Loading…
Reference in New Issue
Block a user