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:56:46 +02:00 committed by GitHub
parent dc58e366bc
commit 4cb22312aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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