Codacy complacency

This commit is contained in:
Paldiu
2020-12-29 22:06:12 -06:00
parent 9352a48650
commit 7a394e52e4
10 changed files with 142 additions and 134 deletions

View File

@ -44,8 +44,6 @@ public class Command_tempban extends FreedomCommand
}
}
final String username;
final Player player = getPlayer(args[0]);
final PlayerData entry;
if (player == null)
@ -57,13 +55,10 @@ public class Command_tempban extends FreedomCommand
msg("Can't find that user. If target is not logged in, make sure that you spelled the name exactly.");
return true;
}
username = entry.getName();
}
else
{
entry = plugin.pl.getData(player);
username = player.getName();
}
final List<String> ips = new ArrayList<>(entry.getIps());