mirror of
https://github.com/zDevelopers/ImageOnMap.git
synced 2024-11-16 07:05:14 +01: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
dc58e366bc
commit
4cb22312aa
@ -79,8 +79,7 @@ public class GiveCommand extends IoMCommand
|
||||
}
|
||||
map = MapManager.getMap(player.getUniqueId(), args[1]);
|
||||
if (map == null) {
|
||||
player.sendMessage(I.t("Map not found"));
|
||||
return;
|
||||
throwInvalidArgument(I.t("Map not found"));
|
||||
}
|
||||
map.give(p);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user