refactor: use final where possible

This commit is contained in:
Simon Giesel 2020-05-27 14:58:06 +02:00
parent 817a437b5d
commit 21f6f004ac

View file

@ -24,9 +24,10 @@ public class CoordsCommand implements CommandExecutor {
}
@Override
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
public boolean onCommand(final CommandSender sender, final Command command, final String label,
final String[] args) {
if (sender instanceof Player) {
Player p = (Player) sender;
final Player p = (Player) sender;
if (playerCoords.keySet().contains(p.getUniqueId())) {
playerCoords.get(p.getUniqueId()).cancel();
playerCoords.remove(p.getUniqueId());