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:29 +02:00 committed by GitHub
parent f0d1d33bb8
commit 9de9a228a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,7 +56,7 @@ public class GiveCommand extends IoMCommand
{
if(args.length < 2) throwInvalidArgument(I.t("You must give a valid player name and a map name."));
final Player p= Bukkit.getPlayer(args[0]);
final Player p = getPlayerParameter(0);
ImageMap map;
//TODO does not support map name with space