Log when a plot is created/deleted

This commit is contained in:
Jesse Boyd 2017-04-09 17:10:23 +10:00
parent f99994737c
commit 9f6bf14649
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -1417,6 +1417,7 @@ public class SQLManager implements AbstractDB {
*/
@Override
public void delete(final Plot plot) {
PS.debug("Deleting plot... Id: " + plot.getId() + " World: " + plot.getWorldName() + " Owner: " + plot.owner + " Index: " + plot.temp);
deleteSettings(plot);
deleteDenied(plot);
deleteHelpers(plot);
@ -1444,6 +1445,7 @@ public class SQLManager implements AbstractDB {
*/
@Override
public void createPlotSettings(final int id, Plot plot) {
PS.debug("Creating plot... Id: " + plot.getId() + " World: " + plot.getWorldName() + " Owner: " + plot.owner + " Index: " + id);
addPlotTask(plot, new UniqueStatement("createPlotSettings") {
@Override
public void set(PreparedStatement stmt) throws SQLException {