From 21f6f004ac49fd152b5cd21284bf2abcfe87d239 Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 27 May 2020 14:58:06 +0200 Subject: [PATCH] refactor: use final where possible --- .../main/java/de/cliffbreak/varo/commands/CoordsCommand.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/varo/src/main/java/de/cliffbreak/varo/commands/CoordsCommand.java b/varo/src/main/java/de/cliffbreak/varo/commands/CoordsCommand.java index c3b8f08..b5b14c5 100644 --- a/varo/src/main/java/de/cliffbreak/varo/commands/CoordsCommand.java +++ b/varo/src/main/java/de/cliffbreak/varo/commands/CoordsCommand.java @@ -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());