mirror of
https://github.com/NLthijs48/AreaShop.git
synced 2025-02-22 23:01:36 +01:00
Attempt to fix unable to add new players with '/as addfriend'
This commit is contained in:
parent
f80a8178ff
commit
ad7db5ee23
@ -77,7 +77,7 @@ public class AddfriendCommand extends CommandAreaShop {
|
||||
return;
|
||||
}
|
||||
OfflinePlayer friend = Bukkit.getOfflinePlayer(args[1]);
|
||||
if(friend.getLastPlayed() == 0 && !plugin.getConfig().getBoolean("addFriendNotExistingPlayers")) {
|
||||
if(friend.getLastPlayed() == 0 && !friend.isOnline() && !plugin.getConfig().getBoolean("addFriendNotExistingPlayers")) {
|
||||
plugin.message(sender, "addfriend-notVisited", args[1], region);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user