Skip to content

Commit

Permalink
Fix #88 NoSuchElementException on /city claim
Browse files Browse the repository at this point in the history
  • Loading branch information
joserobjr committed Nov 14, 2016
1 parent 31739f1 commit 0f09caa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ public CommandResult<Island> claim(CommandEvent cmd) throws DataSourceException
if(claimOpt.get().reserve && claimOpt.get().getCityAcceptingReserve().get() != city)
return new CommandResult<>(new Message("cmd.city.claim.reserved",
"This chunk is reserved to ${name}",
new Object[]{"name",claimOpt.get().getCity().get().getName()}
new Object[]{"name",claimOpt.get().getCityAcceptingReserve().get().getName()}
));

if(!cmd.sender.isAdminMode() && !playerId.equals(city.owner()))
Expand Down

0 comments on commit 0f09caa

Please sign in to comment.