mirror of
https://github.com/zDevelopers/ImageOnMap.git
synced 2024-09-29 06:57:29 +02:00
Update src/main/java/fr/moribus/imageonmap/commands/maptool/GiveCommand.java
Co-authored-by: Amaury Carrade <amaury@carrade.eu>
This commit is contained in:
parent
f0d1d33bb8
commit
9de9a228a9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user