mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2024-12-22 16:05:02 +00:00
Fixed accidental code reversion
This commit is contained in:
parent
12538c7c27
commit
462c113ce8
1 changed files with 12 additions and 4 deletions
|
@ -148,8 +148,15 @@ import java.util.List;
|
||||||
}
|
}
|
||||||
PlotComment comment = value.get(index - 1);
|
PlotComment comment = value.get(index - 1);
|
||||||
inbox.removeComment(plot, comment);
|
inbox.removeComment(plot, comment);
|
||||||
plot.removeComment(comment);
|
boolean success = plot.removeComment(comment);
|
||||||
MainUtil.sendMessage(player, Captions.COMMENT_REMOVED, comment.comment);
|
if (success) {
|
||||||
|
MainUtil.sendMessage(player, Captions.COMMENT_REMOVED_SUCCESS,
|
||||||
|
comment.comment);
|
||||||
|
} else {
|
||||||
|
MainUtil.sendMessage(player, Captions.COMMENT_REMOVED_FAILURE,
|
||||||
|
comment.comment);
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})) {
|
})) {
|
||||||
sendMessage(player, Captions.NOT_IN_PLOT);
|
sendMessage(player, Captions.NOT_IN_PLOT);
|
||||||
|
@ -165,13 +172,14 @@ import java.util.List;
|
||||||
if (!comments.isEmpty()) {
|
if (!comments.isEmpty()) {
|
||||||
plot.removeComments(comments);
|
plot.removeComments(comments);
|
||||||
}
|
}
|
||||||
MainUtil.sendMessage(player, Captions.COMMENT_REMOVED, "*");
|
MainUtil.sendMessage(player, Captions.COMMENT_REMOVED_SUCCESS, "*");
|
||||||
return true;
|
return true;
|
||||||
default:
|
default:
|
||||||
try {
|
try {
|
||||||
page = Integer.parseInt(args[1]);
|
page = Integer.parseInt(args[1]);
|
||||||
} catch (NumberFormatException ignored) {
|
} catch (NumberFormatException ignored) {
|
||||||
sendMessage(player, Captions.COMMAND_SYNTAX, getUsage());
|
sendMessage(player, Captions.COMMAND_SYNTAX,
|
||||||
|
"/plot inbox [inbox] [delete <index>|clear|page]");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue