refactor: use final where possible
This commit is contained in:
parent
817a437b5d
commit
21f6f004ac
1 changed files with 3 additions and 2 deletions
|
@ -24,9 +24,10 @@ public class CoordsCommand implements CommandExecutor {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@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) {
|
if (sender instanceof Player) {
|
||||||
Player p = (Player) sender;
|
final Player p = (Player) sender;
|
||||||
if (playerCoords.keySet().contains(p.getUniqueId())) {
|
if (playerCoords.keySet().contains(p.getUniqueId())) {
|
||||||
playerCoords.get(p.getUniqueId()).cancel();
|
playerCoords.get(p.getUniqueId()).cancel();
|
||||||
playerCoords.remove(p.getUniqueId());
|
playerCoords.remove(p.getUniqueId());
|
||||||
|
|
Loading…
Reference in a new issue