finished refactor

This commit is contained in:
boy0001 2015-01-09 01:08:50 +11:00
parent 7155af3188
commit 791ce39ecc
10 changed files with 146 additions and 50 deletions

View file

@ -678,7 +678,7 @@ public class SQLManager implements AbstractDB {
PlotMain.sendConsoleSenderMessage("&cPlot " + id + " had an invalid flag. A fix has been attempted.");
setFlags(id, flags.toArray(new Flag[0]));
}
plot.settings.setFlags(flags);
FlagManager.setPlotFlags(plot, flags);
} else {
PlotMain.sendConsoleSenderMessage("&cPLOT " + id + " in plot_settings does not exist. Please create the plot or remove this entry.");
}
@ -732,7 +732,6 @@ public class SQLManager implements AbstractDB {
@Override
public void setFlags(final String world, final Plot plot, final Set<Flag> flags) {
plot.settings.setFlags(flags);
final StringBuilder flag_string = new StringBuilder();
int i = 0;
for (final Flag flag : flags) {