mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-09 22:13:12 +00:00
plot inbox tweaks
This commit is contained in:
parent
8ca654900d
commit
040045eed5
8 changed files with 17 additions and 10 deletions
|
@ -982,7 +982,7 @@ public class SQLManager implements AbstractDB {
|
|||
public ArrayList<PlotComment> getComments(final String world, final Plot plot, final int tier) {
|
||||
final ArrayList<PlotComment> comments = new ArrayList<PlotComment>();
|
||||
try {
|
||||
final PreparedStatement statement = this.connection.prepareStatement("SELECT `*` FROM `" + this.prefix + "plot_comments` WHERE `plot_plot_id` = ? AND `tier` = ?");
|
||||
final PreparedStatement statement = this.connection.prepareStatement("SELECT `*` FROM `" + this.prefix + "plot_comments` WHERE `plot_plot_id` = ? AND `tier` <= ?");
|
||||
statement.setInt(1, getId(plot.getWorld().getName(), plot.id));
|
||||
statement.setInt(2, tier);
|
||||
final ResultSet set = statement.executeQuery();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue