hasPlayedBefore isn't necessary here

This commit is contained in:
mbax
2022-03-31 18:14:42 -04:00
parent 0dc51e10d2
commit ed5fe88e0f
@@ -58,7 +58,7 @@ public class VaultCommand implements CommandExecutor {
} else if (sender.hasPermission("playervaults.admin")) {
OfflinePlayer searchPlayer = Bukkit.getOfflinePlayer(args[0]);
String target = args[0];
if (searchPlayer != null && searchPlayer.hasPlayedBefore()) {
if (searchPlayer != null) {
target = searchPlayer.getUniqueId().toString();
}
@@ -91,7 +91,7 @@ public class VaultCommand implements CommandExecutor {
String target = args[0];
OfflinePlayer offlinePlayer = Bukkit.getOfflinePlayer(args[0]);
if (offlinePlayer != null && offlinePlayer.hasPlayedBefore()) {
if (offlinePlayer != null) {
target = offlinePlayer.getUniqueId().toString();
}
if (VaultOperations.openOtherVault(player, target, args[1])) {