diff --git a/src/main/java/fr/moribus/imageonmap/commands/maptool/GiveCommand.java b/src/main/java/fr/moribus/imageonmap/commands/maptool/GiveCommand.java index 10d8b2c..eecea47 100644 --- a/src/main/java/fr/moribus/imageonmap/commands/maptool/GiveCommand.java +++ b/src/main/java/fr/moribus/imageonmap/commands/maptool/GiveCommand.java @@ -66,7 +66,7 @@ public class GiveCommand extends IoMCommand player = playerSender(); } if (args.length == 3) { - player = Bukkit.getPlayer(args[2]); + player = getPlayerParameter(2); if(player==null){ try{ playerSender().sendMessage(I.t("Player map store not found"));