Skip to content

Commit

Permalink
fix: cross-server reports
Browse files Browse the repository at this point in the history
  • Loading branch information
Syrent committed Oct 5, 2024
1 parent 3a4c809 commit a6467ae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class ReportCommand(
}
}

if (target == null || (!Bukkit.getOfflinePlayer(target).hasPlayedBefore() && Bukkit.getOfflinePlayer(target).player == null) || !BukkitVanishUtils.canSee(sender as? Player, Bukkit.getOfflinePlayer(target).uniqueId)) {
if (target == null || (!Bukkit.getOfflinePlayer(target).hasPlayedBefore() && (!Settings.velocitySupport && Bukkit.getOfflinePlayer(target).player == null)) || !BukkitVanishUtils.canSee(sender as? Player, Bukkit.getOfflinePlayer(target).uniqueId)) {
sender.sendMessage(Message.NO_TARGET)
return
}
Expand Down

0 comments on commit a6467ae

Please sign in to comment.