Apply suggestions from code review

Co-authored-by: Amaury Carrade <amaury@carrade.eu>
This commit is contained in:
Vlammar 2020-08-18 00:36:01 +02:00 committed by GitHub
parent 29b7c99595
commit 61a2f4eb2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,15 +67,6 @@ public class GiveCommand extends IoMCommand
}
if (args.length == 3) {
player = getPlayerParameter(2);
if(player==null){
try{
playerSender().sendMessage(I.t("Player map store not found"));
}
catch (Exception e){
}
return;
}
}
map = MapManager.getMap(player.getUniqueId(), args[1]);
if (map == null) {