Skip to content

Commit

Permalink
fix canSee check
Browse files Browse the repository at this point in the history
  • Loading branch information
Badbird5907 committed Apr 6, 2024
1 parent ccd7234 commit 3d314f8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public List<String> provideSuggestions(String input, String lastArg, CoreCommand
public static List<String> suggest(CoreCommandSender s) {
List<String> list = new ArrayList<>();
BukkitCommandSenderImpl sender = (BukkitCommandSenderImpl) s;
if (sender instanceof Player) {
if (sender.isPlayer()) {
Player p = sender.getPlayer();
for (Player onlinePlayer : Bukkit.getOnlinePlayers()) {
if (p.canSee(onlinePlayer)) {
Expand Down

0 comments on commit 3d314f8

Please sign in to comment.