Only query online players when upgrading usernames --> uuids in Vault hooks

This commit is contained in:
Luck 2018-01-23 17:07:26 +00:00
parent 6923c4e247
commit e1c60fa70f
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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) {