From a1a64d8eb409f77444fce6a6735e7516ee3e0db9 Mon Sep 17 00:00:00 2001 From: Andrew Wong <42793301+md5sha256@users.noreply.github.com> Date: Tue, 23 Apr 2024 00:14:32 +1000 Subject: [PATCH] Fix add friend treating existing players as nonexisting --- .../java/me/wiefferink/areashop/commands/AddFriendCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AreaShop/src/main/java/me/wiefferink/areashop/commands/AddFriendCommand.java b/AreaShop/src/main/java/me/wiefferink/areashop/commands/AddFriendCommand.java index 0fd35973..8a894ae8 100644 --- a/AreaShop/src/main/java/me/wiefferink/areashop/commands/AddFriendCommand.java +++ b/AreaShop/src/main/java/me/wiefferink/areashop/commands/AddFriendCommand.java @@ -85,7 +85,7 @@ private void handleCommand(CommandContext context) { this.messageBridge.message(sender, "addfriend-noPermissionOther", region); return; } - if (friend.hasPlayedBefore() && !friend.isOnline() && !plugin.getConfig() + if (!friend.hasPlayedBefore() && !friend.isOnline() && !plugin.getConfig() .getBoolean("addFriendNotExistingPlayers")) { this.messageBridge.message(sender, "addfriend-notVisited", friend.getName(), region); } else if (region.getFriendsFeature().getFriends().contains(friend.getUniqueId())) {