Skip to content

Commit

Permalink
Fix add friend treating existing players as nonexisting
Browse files Browse the repository at this point in the history
  • Loading branch information
md5sha256 committed Apr 22, 2024
1 parent e0a4515 commit a1a64d8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private void handleCommand(CommandContext<Player> 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())) {
Expand Down

0 comments on commit a1a64d8

Please sign in to comment.