Update src/main/java/fr/moribus/imageonmap/commands/maptool/GiveCommand.java

Co-authored-by: Amaury Carrade <amaury@carrade.eu>
This commit is contained in:
Vlammar 2020-08-17 23:30:48 +02:00 committed by GitHub
parent 9de9a228a9
commit 7836aa8e95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"));